27.03.2010, 08:34
Код:
forward MessaggioSwat();
Код:
if(strcmp(cmdtext, "/911", true) == 0) { new callingplayer[MAX_PLAYER_NAME]; GetPlayerName(playerid, callingplayer, sizeof(callingplayer)); format(string, sizeof(string), "%s need help.", callingplayer); SendClientMessageToAll(0xFFFF00AA, string); MessaggioSwat(); return 1; }
Код:
public MessaggioSwat() { new name[MAX_PLAYER_NAME]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerName(playerid, name, sizeof(name)); if(strcmp(name, "[sw]", true)) { GameTextForPlayer(playerid,"%s Need Help!", 3000, 3, callingplayer); } } } return 1; }
C:\Users\MavericK\Documents\File ricevuti\peppe\gamemodes\lvdm.pwn(227 : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
How can i fix it?