Up,i removed something wrong and now i have:
: error 017: undefined symbol "idx"
: error 017: undefined symbol "idx"
: error 001: expected token: ",", but found "-integer value-"
: warning 215: expression has no effect
: warning 215: expression has no effect
: error 001: expected token: ";", but found ")"
: error 029: invalid expression, assumed zero
: fatal error 107: too many error messages on one line
pawn Код:
if (strcmp("/pay", cmdtext, true) == 0) {
new tmp[256], tmp2[256];
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
if (!strlen(tmp)) {
SendClientMessage (playerid, COLOR_YELLOW, "Comanda este /pay [playerid] [suma]" );
return 1;
}
if (!strlen(tmp2)) {
SendClientMessage (playerid, COLOR_YELLOW, "Comanda este /pay [playerid] [suma]" );
return 1;
}
new receiver, money;
receiver = strval(tmp);
money = strval(tmp2);
if(GetPlayerMoney(playerid) < money){
SendClientMessage(playerid COLOR_YELLOW, "Nu ai destui bani ! ");
return 1;
Sorry for the double-post.