17.03.2012, 19:17
Код:
{ 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 (Player,i) { if(IsPlayerInRangeOfPoint(i, 10, pX, pY, pZ)) { SendClientMessage(i, -1, string); } } return 1; } stock pName(playerid) { new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof Name); return Name; }
Код:
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(176) : error 017: undefined symbol "String" C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(176) : error 017: undefined symbol "String" C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(178) : error 017: undefined symbol "foreach" C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(180) : error 017: undefined symbol "i" C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(182) : error 017: undefined symbol "i" C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(408) : warning 219: local variable "pName" shadows a variable at a preceding level C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(422) : warning 219: local variable "pName" shadows a variable at a preceding level C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(495) : warning 219: local variable "pName" shadows a variable at a preceding level C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(509) : warning 219: local variable "pName" shadows a variable at a preceding level C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(533) : warning 219: local variable "pName" shadows a variable at a preceding level C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(547) : warning 219: local variable "pName" shadows a variable at a preceding level C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(592) : warning 219: local variable "pName" shadows a variable at a preceding level C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(614) : warning 219: local variable "pName" shadows a variable at a preceding level C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(629) : warning 219: local variable "pName" shadows a variable at a preceding level C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(643) : warning 219: local variable "pName" shadows a variable at a preceding level C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(656) : warning 219: local variable "pName" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.