Cod: Selectaţi tot
Compilare: cmd_general.cpp
cmd_general.cpp: In function 'void do_shop_update_item(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1547: warning: comparison is always false due to limited range of data type
cmd_general.cpp:1551: warning: comparison is always false due to limited range of data type
cmd_general.cpp:1556: warning: comparison is always false due to limited range of data type
cmd_general.cpp:1571: error: 'szSockets' was not declared in this scope
cmd_general.cpp:1571: error: 'szAttrs' was not declared in this scope
cmd_general.cpp:1585: error: 'GetPlayerID' was not declared in this scope
cmd_general.cpp:1585: error: 'GetName' was not declared in this scope
cmd_general.cpp:1586: error: 'ChatPacket' was not declared in this scope
cmd_general.cpp: In function 'void do_shop_refresh_items(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1750: warning: operation on 'col' may be undefined
cmd_general.cpp:1739: warning: unused variable 'c'
gmake: *** [OBJDIR/cmd_general.o] Error 1Cod: Selectaţi tot
#ifndef FULL_YANG
{
long long nTotalMoney=price;
SQLMsg * pkMsg(DBManager::instance().DirectQuery("SELECT price from player_shop_items where shop_id='%d'", szSockets,szAttrs,shop_id));
SQLResult * pRes = pkMsg->Get();
if (pRes->uiNumRows>0)
{
MYSQL_ROW row;
while ((row = mysql_fetch_row(pRes->pSQLResult)) != NULL)
{
long long temp;
str_to_number(temp,row[0]);
nTotalMoney+=temp;
}
}
if (GOLD_MAX <= nTotalMoney)
{
sys_err("[OVERFLOW_GOLD] Overflow (GOLD_MAX) id %u name %s", GetPlayerID(), GetName());
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("20?? łE?≫ ??°uC??ⓒ ≫oAˇ?≫ ??o°ˇ ??˝?´?´?"));
return;
}
}
#endif



