Undefined symbol "i"
#1

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
Reply
#2

show us script to found the actual problem
Reply
#3

-deleted-
Reply
#4

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++)
{

}
Reply
#5

@emokidx

That's wrong! The variable (HealthBar) which we wanna define is a textdraw, that's why he gotta define:

pawn Код:
new Text:HealthBar;
Reply
#6

ooo, sry lol, kinda sleepy
Reply
#7

He has defined HealthBar. It's 'i' that is un-defined. Try reading the errors he posted.

Show all the code surrounding those lines.
Reply
#8

Thanks to all.I fixed it ! +1 rep. for who helped
Reply
#9

Glad we could help!
But somehow, everybody helped a little! ^^
Reply
#10

Yeah.I gived +1 to all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)