Need Some Help with Errors.
#1

I have some errors here,i think its that im missing an include,but i can't be sure,im not a scripter.
Код:
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3182) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3190) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3197) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3206) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3220) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3227) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3231) : error 017: undefined symbol "GivePlayerCash"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3234) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3241) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3249) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3256) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3263) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3271) : error 017: undefined symbol "GivePlayerCash"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3274) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3281) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3288) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3310) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3319) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3331) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3346) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3354) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3362) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3380) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3402) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3410) : error 017: undefined symbol "ProxDetector"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(3418) : error 017: undefined symbol "GivePlayerCash"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

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);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
{
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)))
{
SendClientMessage(i, col2, string);
}
else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SendClientMessage(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);
}
}
}
}
}
return 1;
}
hahaah nice folder name
Reply
#3

where to i put this?
Reply
#4

anywhere in your gm/fs
Reply
#5

and how do i fix this giveplayercash problem?
Reply
#6

Another problem.
Код:
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(5300) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(5877) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(5893) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(5906) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(5920) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(5931) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(5945) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6008) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6023) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6038) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6053) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6068) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6083) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6098) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6113) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6128) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6143) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6158) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6173) : error 017: undefined symbol "NOPCheck"
C:\Users\user82012\Desktop\Pain in the ass\gamemodes\EliteWorld (2).pwn(6188) : error 017: undefined symbol "NOPCheck"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#7

What does NOPcheck do

Make a function:

//In the top, later includes and defines:

pawn Код:
forward NOPCheck()

......



public NOPCheck()
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)