26.08.2009, 12:05
This is my question when the server using the command''/try''nothing happens''/try smoke'' nothing happens D:
Whats the error?
Whats the error?
Quote:
if (strcmp(cmd, "/try", true)==0) { if(cmdtext[4] == ' ') { new plyName[MAX_PLAYER_NAME]; new buffer[255]; new rand = random(20); 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; } |