25.10.2008, 04:02
Possible to have the /hit and /rob commands converted to strtok?
Originally Posted by X_Cutterz
Possible to have the /hit and /rob commands converted to strtok?
|
IsPlayerCop(playerid):
;
public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(hit, 3, cmdtext); if(!strcmp(cmdtext, "/heads", true)) { new count = 0; SendClientMessage(playerid, COLOR_MSG, "Pasreizejie uzdevumi:"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && hit[i] > 0) { new string[256]; format(string, 256, "Galva uz %s (%i) par $%i", ReturnPlayerName(i), i, hit[i]); SendClientMessage(playerid, COLOR_FOUND, string); count++ }; } if(count == 0) { SendClientMessage(playerid, COLOR_ERROR, "Nav neviena uzdevuma paslaik!"); } } return 0; }
D:\SA-MP SERVER\filterscripts\head.pwn(226) : error 001: expected token: ";", but found "}" D:\SA-MP SERVER\filterscripts\head.pwn(226) : error 036: empty statement Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
count++
count++;