Whats wrong? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats wrong? (
/showthread.php?tid=228429)
Whats wrong? -
GNGification - 19.02.2011
Whats wrong?
Problem:
C:\Users\Vanhempien Kone\Videos\Desktop\Kaikki\WoS_SAMP\Servu\filtersc ripts\WarWorld.pwn(9

: error 017: undefined symbol "IsInWarZone"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Line 98: if(IsInWarZone(playerid) == 0)
Question: Where I need to add and what?
Thanks for helping
Re: Whats wrong? -
Marricio - 19.02.2011
new IsInWarZone[MAX_PLAYERS];
at th top
Re: Whats wrong? -
ilikenuts - 19.02.2011
Quote:
Orginaly Posted by :Marricio:
new IsInWarZone[MAX_PLAYERS];
at th top
|
Exatly what i want to say!!
i wish if the problem is over now~~!
Re: Whats wrong? -
maramizo - 19.02.2011
FYI, If you get an undefined symbol, that means you haven't defined it yet.
To define it do new [commandhere(params)] at the top.
Re: Whats wrong? -
GNGification - 19.02.2011
Well maramizo....
#define WarZone(Whathere?)]
or anyone
Re: Whats wrong? -
maramizo - 19.02.2011
It depends on the command.
Since you're using if(IsInWarZone(playerid) == 0)
#define IsInWarZone[MAX_PLAYERS]
Re: Whats wrong? -
admantis - 19.02.2011
Guys, please, I cant beliueved you've not noticed.
(playerid) should be [playerid].
if(IsInWarZone[playerid] == 0)
Re: Whats wrong? -
maramizo - 19.02.2011
admantis why so?
E:
LOL nevermind -.-