Undefined symbol "i" - 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: Undefined symbol "i" (
/showthread.php?tid=320032)
Undefined symbol "i" -
DarkyTheAngel - 21.02.2012
Hey hey guys ! I got some errors after i combined
this with my gamemode.
Errors :
pawn Код:
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1582) : error 017: undefined symbol "i"
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1583) : error 017: undefined symbol "i"
Lines :
pawn Код:
TextDrawHideForAll(HealthBar[i]);
TextDrawDestroy(HealthBar[i]);
I'm not good at errors so can someone help me ?
Thanks
Re: Undefined symbol "i" -
varuncoolrule - 21.02.2012
show us script to found the actual problem
Re: Undefined symbol "i" -
emokidx - 21.02.2012
-deleted-
Re: Undefined symbol "i" -
Rob_Maate - 21.02.2012
Make sure in OnGameModeExit / OnFilterScriptExit where that code should be, that you've placed it inside a for loop.
pawn Код:
for(new i=0; i<19; i++)
{
}
Re: Undefined symbol "i" -
Twisted_Insane - 21.02.2012
@emokidx
That's wrong! The variable (HealthBar) which we wanna define is a textdraw, that's why he gotta define:
Re: Undefined symbol "i" -
emokidx - 21.02.2012
ooo, sry lol, kinda sleepy
Re: Undefined symbol "i" -
MP2 - 21.02.2012
He has defined HealthBar. It's 'i' that is un-defined. Try reading the errors he posted.
Show all the code surrounding those lines.
Re: Undefined symbol "i" -
DarkyTheAngel - 21.02.2012
Thanks to all.I fixed it ! +1 rep. for who helped
Re: Undefined symbol "i" -
Twisted_Insane - 21.02.2012
Glad we could help!
But somehow, everybody helped a little! ^^
Re: Undefined symbol "i" -
DarkyTheAngel - 21.02.2012
Yeah.I gived +1 to all