ERRRORRR
#1

Hey I have the same error like here and this is the commands and when I remove it theres no errors , This is it :


From this thread u can see my errors this is the same :

Код:
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3253) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3261) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3268) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3277) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3291) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3298) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3302) : error 017: undefined symbol "GivePlayerCash"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3305) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3312) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3320) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3327) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3334) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3342) : error 017: undefined symbol "GivePlayerCash"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3345) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3352) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3359) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3381) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3390) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3402) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3417) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3425) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3433) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3451) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3473) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3481) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3489) : error 017: undefined symbol "GivePlayerCash"

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


26 Errors.
Cmds got errors :

Код:
CMD:showwhisper(playerid, params[])
	{
	    if(PlayerInfo[playerid][pAdmin] >= 99999)
	    {
	        if(ShowWhisper[playerid] != 1)
	        {
	        	ShowWhisper[playerid] = true;
	        	SendClientMessage(playerid, COLOR_WHITE, "{DC0C0C}ShowWhisper: {FFFFFF}You'll see the players' whisper messages now!");
			}
			else
	        {
	        	ShowWhisper[playerid] = false;
	        	SendClientMessage(playerid, COLOR_WHITE, "{DC0C0C}ShowWhisper: {FFFFFF}You won't see players' whisper messages now.");
			}
	    }
	}
	
	
CMD:showsms(playerid, params[])
	{
	    if(PlayerInfo[playerid][pAdmin] >= 99999)
	    {
	        if(ShowSMS[playerid] != 1)
	        {
	        	ShowSMS[playerid] = true;
	        	SendClientMessage(playerid, COLOR_WHITE, "{DC0C0C}ShowSMS: {FFFFFF}You'll see the players' SMS messages now!");
			}
			else
	        {
	        	ShowSMS[playerid] = false;
	        	SendClientMessage(playerid, COLOR_WHITE, "{DC0C0C}ShowSMS: {FFFFFF}You won't see players' SMS messages now.");
			}
	    }

Remember if I remove the CMDS and re-compile this is no errors , and if I stay that the errors I showed here that I get...
Reply
#2

Try putting this in your script:

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;
}
Oh, and change GivePlayerCash to GivePlayerMoney
Reply
#3

THIS IS not the problem man look at my last post : https://sampforum.blast.hk/showthread.php?tid=428137

Infinity Account replied the new commands fixed there man !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)