28.09.2011, 23:00
Estб errado:
Colocou as variбveis Cargo, Dias e ID pra procurar prуximo parametro usando strtok no entanto tenta ler usando tmp.
pawn Код:
ID = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_PINK, "/darhelper [ID] [0-1] [Dias]"); ID = ReturnUser(tmp);
CARGO = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_PINK, "/darhelper [ID] [0-1] [Dias]"); CARGO = strval(tmp);
DIAS = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_PINK, "/darhelper [ID] [0-1] [Dias]"); DIAS = strval(tmp);