3DTextlabel issue; how to make a global one but assign for a player?
#6

Quote:
Originally Posted by IKnowWhatIAmDoing
Посмотреть сообщение
new Text3D:Myvar[MAX_PLAYERS];

Myvar = Create3DTextLabel("I'm at the coordinates:\n30.0, 40.0, 50.0", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 0);

error 033: array must be indexed (variable "Myvar ")
I create the label at a sub-callback (command at this case) and the definition is on top of the script
You need to add [playerid] to myvar. If you defined it with MAX_PLAYERS, or some other thing.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)