I editted a script but I can't finish the compile bcz it show me errors! WHAT SOULD I DO?
Код:
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(2962) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(2969) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(2976) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(2985) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(2999) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3006) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3010) : error 017: undefined symbol "GivePlayerCash"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3013) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3020) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3028) : error 017: undefined symbol "GivePlayerCash"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3031) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3038) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3045) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3059) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3068) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3080) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3099) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3113) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3127) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3135) : error 017: undefined symbol "GivePlayerCash"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3140) : error 017: undefined symbol "ProxDetector"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3308) : error 017: undefined symbol "GivePlayerCash"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3465) : warning 203: symbol is never used: "seek"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3495) : warning 203: symbol is never used: "seek"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3563) : error 017: undefined symbol "GivePlayerCash"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(3564) : error 017: undefined symbol "GivePlayerCash"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(4865) : error 017: undefined symbol "NOPCheck"
C:\Users\AnaC\Desktop\Old MC\gamemodes\NYRP.pwn(5475) : error 017: undefined symbol "NOPCheck"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
pawn Код:
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
pawn Код:
public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
{
if(IsPlayerConnected(playerid))
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
//radi = 2.0; //Trigger Radius
foreach(Player, i) // or use: for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!BigEar[i])
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SendClientMessage(i, col1, string);
}
else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
{
SendClientPlayerMessage(i, col2, string);
}
else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SendClientPlayerMessage(i, col3, string);
}
else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
{
SendClientMessage(i, col4, string);
}
else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
SendClientMessage(i, col5, string);
}
}
else if(MeBigears == 0)
{
SendClientMessage(i, col1, string);
}
else
{
MeBigears = 0;
}
}
}//not connected
return 1;
}