Problem
#1

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

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

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);
Reply
#4

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")
Reply
#5

Show me how you have defined Infobar.
Reply
#6

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


Forum Jump:


Users browsing this thread: 4 Guest(s)