About Proxdetectors Error [+1 Reputation]
#1

Hello, this error always comes up whenever i tried to compile my script... Is there anything wrong ? What should i do to fix this errors ?

Code:
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2875) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2881) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2888) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2894) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2901) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2908) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2914) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2920) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2927) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2934) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2940) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(2947) : error 017: undefined symbol "ProxDetector"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5615) : error 017: undefined symbol "splits"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5897) : error 017: undefined symbol "ini_GetKey"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5897) : error 033: array must be indexed (variable "key")
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5899) : error 017: undefined symbol "Ini_Value"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5899) : error 033: array must be indexed (variable "val")
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5901) : error 017: undefined symbol "Ini_Value"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5901) : error 033: array must be indexed (variable "val")
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5903) : error 017: undefined symbol "Ini_Value"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5903) : error 033: array must be indexed (variable "val")
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5905) : error 017: undefined symbol "Ini_Value"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5905) : error 033: array must be indexed (variable "val")
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5907) : error 017: undefined symbol "Ini_Value"
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5907) : error 033: array must be indexed (variable "val")
C:\Users\Windows7\Desktop\Microsoft Corporation ©\PRP\gamemodes\GRP\GRP.pwn(5909) : error 017: undefined symbol "Ini_Value"

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


26 Errors.
Remember : +1 Reputation for those who can help me..
Reply
#2

download it's include and compile again.
Reply
#3

You don't have ProxDetector.
Reply
#4

Where can i download it ? And whats the name of the include ?
Reply
#5

ProxDetector is a function from the old GF script, you can easily find it by googling, or just downloading the GF script.
Reply
#6

I cant find it... and where i can see it on the gf script?
Reply
#7

You can just search "public ProxDetector", anyways i found it for you:
pawn Code:
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
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(!BigEar[i])
                {
                    GetPlayerPos(i, posx, posy, posz);
                    tempposx = (oldposx -posx);
                    tempposy = (oldposy -posy);
                    tempposz = (oldposz -posz);
                    //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,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)))
                    {
                        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);
                    }
                }
                else
                {
                    SendClientMessage(i, col1, string);
                }
            }
        }
    }//not connected
    return 1;
}
Delete the BigEar thing if you don't have it.
Reply
#8

Where i will put this thing ?
Reply
#9

Put it out of any other functions, and forgot to say, delete the "public", so it just says "ProxDetector".
You can just put it in the bottom of your script.
Reply
#10

Okay, it will be like this ?

Code:
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
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
				if(!BigEar[i])
				{
					GetPlayerPos(i, posx, posy, posz);
					tempposx = (oldposx -posx);
					tempposy = (oldposy -posy);
					tempposz = (oldposz -posz);
					//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,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)))
					{
						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);
					}
				}
				else
				{
					SendClientMessage(i, col1, string);
				}
			}
		}
	}//not connected
	return 1;
}
Reply
#11

You have to delete the BigEar stuff as well if you don't have that in your script.
Reply
#12

Well, actually it seems like you have an bracket error in your script.

Check that here: http://germanrsbot.square7.de/Klamme...?Seite=profile

Greekz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)