17.03.2012, 19:28
Код:
public OnPlayerText(playerid, text[]) { new Float:pX, Float:pY, Float:pZ, string[128]; format(string, sizeof string, "%s says: %s", pName(playerid), text); GetPlayerPos(playerid, pX, pY, pZ); foreach (new i:Player) { if(IsPlayerInRangeOfPoint(i, 10, pX, pY, pZ)) { SendClientMessage(i, -1, string); } } return 1; }
Код:
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(176) : error 017: undefined symbol "pName" C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(178) : error 017: undefined symbol "foreach" C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(178) : error 029: invalid expression, assumed zero C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(178) : error 017: undefined symbol "Player" C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(178) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.