02.08.2013, 21:52
When I try to compile script I get errors wit the Prox Detector here is the code
Here are the errors
Here is line 84:
Here is line 86:
Here is line 87:
Код HTML:
stock ProxDetector(Float:radi, playerid, string[],color) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); foreach(Player,i) { if(!IsPlayerConnected(i))continue; if(IsPlayerInRangeOfPoint(i,radi,x,y,z)) SendClientMessage(i,color,string); } }
Quote:
C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(84) : error 017: undefined symbol "foreach" C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(86) : error 017: undefined symbol "i" C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(86) : error 024: "break" or "continue" is out of context C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(87) : error 017: undefined symbol "i" C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(87) : error 017: undefined symbol "i" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
Код HTML:
foreach(Player,i)
Код HTML:
if(!IsPlayerConnected(i))continue;
Код HTML:
if(IsPlayerInRangeOfPoint(i,radi,x,y,z)) SendClientMessage(i,color,string);