SA-MP Forums Archive
Problem - 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: Problem (/showthread.php?tid=378156)



Problem - tsonn1 - 16.09.2012

Hello.

I've got a little problem.
Error:

Код:
C:\Program Files (x86)\Rockstar Games\GTASanAndreas\SAMP Server\gamemodes\GM.pwn(28951) : error 033: array must be indexed (variable "InfoBar")
The Line:

Код:
InfoBar = TextDrawCreate(470.000000,400.000000,string);



Re: Problem - AtItsMax - 16.09.2012

pawn Код:
InfoBar[playerid]  = TextDrawCreate(470.000000,400.000000,string);



Re: Problem - ViniBorn - 16.09.2012

pawn Код:
new Text:InfoBar;
InfoBar = TextDrawCreate(470.000000,400.000000,string);
Or

pawn Код:
new Text:InfoBar[2];
InfoBar[0] = TextDrawCreate(470.000000,400.000000,string);



Re: Problem - tsonn1 - 16.09.2012

If I do that, I get the next error:

Код:
C:\Program Files (x86)\Rockstar Games\GTASanAndreas\SAMP Server\gamemodes\uusnrp.pwn(28952) : error 033: array must be indexed (variable "InfoBar")



Re: Problem - AtItsMax - 16.09.2012

Show me how you have defined Infobar.


Re: Problem - tsonn1 - 16.09.2012

Aam... I don't have a defined infobar.