SA-MP Forums Archive
Errors - 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: Errors (/showthread.php?tid=422992)



Errors - raamiix - 16.03.2013

I did get this errors how to fix it?

Код:
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(2978) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(2985) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(2992) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3001) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3015) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3022) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3026) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3029) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3036) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3044) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3047) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3054) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3061) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3075) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3084) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3096) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3115) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3129) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3143) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3151) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3156) : error 017: undefined symbol "ProxDetector"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3324) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3582) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(3583) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(4884) : error 017: undefined symbol "NOPCheck"
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(5494) : error 017: undefined symbol "NOPCheck"

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


26 Errors.



Re: Errors - rbush12 - 16.03.2013

Do you have ProxDetector, GivePlayerCash and NOPCheck as either a 'new' or a 'stock'


Re: Errors - raamiix - 16.03.2013

Quote:
Originally Posted by rbush12
Посмотреть сообщение
Do you have ProxDetector, GivePlayerCash and NOPCheck as either a 'new' or a 'stock'
I dont know. How to check that? How to add that?


Re: Errors - rbush12 - 16.03.2013

ProxDetector:

Код:
stock ProxDetector(playerid, Float:radius, string[], col1, col2, col3, col4, col5)
{
	new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x, y, z);
	new Float:ix, Float:iy, Float:iz;
	new Float:cx, Float:cy, Float:cz;
	foreach(Player, i)
	{
	    if(IsPlayerLoggedIn(i))
	    {
	        if(GetPlayerInterior(playerid) == GetPlayerInterior(i) && GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
	        {
				GetPlayerPos(i, ix, iy, iz);
				cx = (x - ix);
				cy = (y - iy);
				cz = (z - iz);
				if(((cx < radius/16) && (cx > -radius/16)) && ((cy < radius/16) && (cy > -radius/16)) && ((cz < radius/16) && (cz > -radius/16)))
				{
				    SendClientMessage(i, col1, string);
				}
				else if(((cx < radius/8) && (cx > -radius/8)) && ((cy < radius/8) && (cy > -radius/8)) && ((cz < radius/8) && (cz > -radius/8)))
				{
				    SendClientMessage(i, col2, string);
				}
				else if(((cx < radius/4) && (cx > -radius/4)) && ((cy < radius/4) && (cy > -radius/4)) && ((cz < radius/4) && (cz > -radius/4)))
				{
				    SendClientMessage(i, col3, string);
				}
				else if(((cx < radius/2) && (cx > -radius/2)) && ((cy < radius/2) && (cy > -radius/2)) && ((cz < radius/2) && (cz > -radius/2)))
				{
				    SendClientMessage(i, col4, string);
				}
				else if(((cx < radius) && (cx > -radius)) && ((cy < radius) && (cy > -radius)) && ((cz < radius) && (cz > -radius)))
				{
				    SendClientMessage(i, col5, string);
				}
			}
	    }
	}
	return 1;
}
GivePlayerCash change to GivePlayerMoney

I seam to have lost NOPCheck