26.08.2009, 13:12
What is STRTOK?
_______________________
_______________________
Quote:
C:\Users\Pablo\Desktop\Sona GM\gamemodes\Sona.pwn(1175) : error 017: undefined symbol "tmp" |
Quote:
if (strcmp(cmd, "/try", true)==0) { if(cmdtext[4] == ' ') { new plyName[MAX_PLAYER_NAME]; new buffer[255]; new rand = random(2); new message[256]; strdel(cmdtext, 0, 4); if(rand >= 10) { format(buffer, sizeof(buffer), "* %s intenta %s y lo consigue", plyName, message); }else { format(buffer, sizeof(buffer), "* %s intenta %s pero falla", plyName, message); } for(new ply; ply != MAX_PLAYERS; ply++) { { SendClientMessage(ply, 0x00FFFF, buffer); } } }else { SendClientMessage(playerid, 0xFF0000FF, "USA: /try [accion]"); } return 1; } |