31.01.2016, 19:09
Quote:
Acho que compreendi, veja se isto lhe ajuda:
PHP код:
OBS:O cуdigo nгo foi testado, adeque a sua maneira. |
warning 202: number of arguments does not match definition
Nessa linha:
Код:
format(sG,sizeof(sG),"%s - $%d",name,cache_get_field_content(r, "bank"));
Код:
CMD:rank(playerid,params[]) { new sG[128], name[128]; if(sscanf(params,"s[68]",params)) { SendClientMessage(playerid,-1,"Use: /rank [option]"); SendClientMessage(playerid,-1,"Options: bank"); return 1; } if(strcmp(params,"bank",true) == 0) { new rows, fields; mysql_query(ConnectMYSQL,"SELECT * FROM `accounts` ORDER BY bank DESC"); cache_get_data(rows, fields); for(new r; r < 15; r++) { SendClientMessage(playerid,-1,"Rank: Banco"); cache_get_field_content(r, "Username",name); format(sG,sizeof(sG),"%s - $%d",name,cache_get_field_content(r, "bank")); // warning 202: number of arguments does not match definition SendClientMessage(playerid,-1,sG); } } return 1; }