25.08.2009, 19:06
I have this error:
This is the scrip
Help plz
Quote:
C:\Users\Pablo\Desktop\Sona GM\gamemodes\Sona.pwn(1114) : error 017: undefined symbol "playername" C:\Users\Pablo\Desktop\Sona GM\gamemodes\Sona.pwn(1120) : error 017: undefined symbol "playername" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
Quote:
if (strcmp(cmdtext, "/me", true)==0) { new string[120]; GetPlayerName(playerid,playername,24); if(!strlen(cmdtext)) { SendClientMessage(playerid,COLOR_GREY,"Usage: /me [action]"); return 1; } format(string,sizeof(string),"%s %s",playername,cmdtext[0]); for(new i=0; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i)) if(GetDistanceBetweenPlayers(playerid,i) <= 30 && i!=playerid) { SendClientMessage(i,COLOR_PURPLE,string); SendClientMessage(playerid,COLOR_PURPLE,string); return 1; } return 1; } |