Variable Help!!! - 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: Variable Help!!! (
/showthread.php?tid=93104)
Variable Help!!! -
virspector - 23.08.2009
I made a code like this:
Blah...blah...blah...blah.....
Blah...blah...blah...blah.....
#define COLOR_YELLOW 0xFFFF00AA
new kelas[MAX_PLAYERS];
new ter;
new cou;
public OnFilterScriptInit()
Blah...blah...blah...blah.....
Blah...blah...blah...blah.....
public ExitTheGameMode()
{
if(ter == counter)
{
GameTextForAll("ROUND DRAW", 5000, 2);
}
else if(ter > cou)
{
GameTextForAll("TERRORIST WIN", 5000, 2);
}
else if(cou > ter)
{
GameTextForAll("COUNTER TERRORIST WIN", 5000, 2);
}
SetTimer("ExitTheGameMode2",5000,fals… // Set up a timer to exit this mode.
}
Blah....blah...blah
blah....blah....blah
I just cut it, to make it shorter. And when i compile, this is what i see:
error 017: undefined symbol "ter"
error 017: undefined symbol "ter"
error 017: undefined symbol "cou"
That's the part of the debug. Please help
Re: Variable Help!!! -
MB@ - 23.08.2009
Try this:
Код:
Blah...blah...blah...blah.....
Blah...blah...blah...blah.....
#define COLOR_YELLOW 0xFFFF00AA
new kelas[MAX_PLAYERS];
new cou;
public OnFilterScriptInit()
Blah...blah...blah...blah.....
Blah...blah...blah...blah.....
public ExitTheGameMode()
{
new ter;
if(ter == counter)
{
GameTextForAll("ROUND DRAW", 5000, 2);
}
else if(ter > cou)
{
GameTextForAll("TERRORIST WIN", 5000, 2);
}
else if(cou > ter)
{
GameTextForAll("COUNTER TERRORIST WIN", 5000, 2);
}
SetTimer("ExitTheGameMode2",5000,fals… // Set up a timer to exit this mode.
}