SA-MP Forums Archive
About Proxdetectors Error [+1 Reputation] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: About Proxdetectors Error [+1 Reputation] (/showthread.php?tid=567982)



About Proxdetectors Error [+1 Reputation] - ChuckyBabe - 18.03.2015

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..


Re: About Proxdetectors Error [+1 Reputation] - shourya12 - 18.03.2015

download it's include and compile again.


Re: About Proxdetectors Error [+1 Reputation] - CalvinC - 18.03.2015

You don't have ProxDetector.


Re: About Proxdetectors Error [+1 Reputation] - ChuckyBabe - 18.03.2015

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


Re: About Proxdetectors Error [+1 Reputation] - CalvinC - 18.03.2015

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


Re: About Proxdetectors Error [+1 Reputation] - ChuckyBabe - 18.03.2015

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


Re: About Proxdetectors Error [+1 Reputation] - CalvinC - 18.03.2015

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.


Re: About Proxdetectors Error [+1 Reputation] - ChuckyBabe - 18.03.2015

Where i will put this thing ?


Re: About Proxdetectors Error [+1 Reputation] - CalvinC - 18.03.2015

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.


Re: About Proxdetectors Error [+1 Reputation] - ChuckyBabe - 18.03.2015

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;
}



Re: About Proxdetectors Error [+1 Reputation] - CalvinC - 18.03.2015

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


AW: About Proxdetectors Error [+1 Reputation] - Kaliber - 18.03.2015

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

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

Greekz