Help undefined symbol ProxDetector
#1

I got this error while im editing it. Please help.

Code:
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2941) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2949) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2956) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2965) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2979) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2986) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2990) : error 017: undefined symbol "GivePlayerCash"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2993) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3000) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3008) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3012) : error 017: undefined symbol "pFirework"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3015) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3022) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3030) : error 017: undefined symbol "GivePlayerCash"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3033) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3040) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3047) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3055) : error 017: undefined symbol "ABroadCast"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3059) : error 017: undefined symbol "Log"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3061) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3070) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3080) : error 017: undefined symbol "Log"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3082) : error 017: undefined symbol "ProxDetector"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3095) : error 017: undefined symbol "ABroadCast"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3099) : error 017: undefined symbol "Log"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(3101) : error 017: undefined symbol "ProxDetector"

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


26 Errors.
Reply
#2

Put this at the bottom of your GM/FS -

Code:
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(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;
}
Reply
#3

same errors
Reply
#4

Show us the error lines then.
Reply
#5

I said it's same errors.
Reply
#6

Try "ProxyDetector" NOT "ProxDetector"
Reply
#7

lol same errors
Reply
#8

Add this ins your script:
pawn Code:
new ProxyDetector
new Log
new ABroadCast
new GivePlayerCash
new pFirework
and re-compile
Reply
#9

Code:
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(64) : error 001: expected token: ";", but found "new"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(65) : error 001: expected token: ";", but found "new"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(66) : error 001: expected token: ";", but found "new"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(67) : error 001: expected token: ";", but found "new"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(605) : error 001: expected token: ";", but found "new"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : error 012: invalid function call, not a valid address
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : error 001: expected token: ";", but found ")"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : error 029: invalid expression, assumed zero
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2946) : fatal error 107: too many error messages on one line

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


9 Errors.
Here is the line.
64-67
Code:
#define CHANNEL_SEVEN_LINK "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280356"
#define CHANNEL_EIGHT_LINK "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280356"
#define CHANNEL_NINE_LINK "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280356"
605
Code:
#define COLOR_TWBLUE 0x0000FFAA
2946
Code:
{
That only.


9 errors.
Reply
#10

try:
pawn Code:
#define CHANNEL_SEVEN_LINK "yp.shoutcast.com/sbin/tunein-station.pls?id=1280356"
#define CHANNEL_EIGHT_LINK "yp.shoutcast.com/sbin/tunein-station.pls?id=1280356"
#define CHANNEL_NINE_LINK "yp.shoutcast.com/sbin/tunein-station.pls?id=1280356"

#define COLOR_TWBLUE 0x0000FFAA
worked perfect for me
and try removing
pawn Code:
{
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)