26.02.2014, 17:28
From what im reading and if im reading it correctly you mean somethingm ore like this??
trying to compile i got these errors
DM.pwn(76) : error 008: must be a constant expression; assumed zero
DM.pwn(79) : error 033: array must be indexed (variable "PlayerLabel")
DM.pwn(80) : error 035: argument type mismatch (argument 1)
Код:
new result[128]; new number[MAX_PLAYERS] = playerid; // at this part im trying to get the playerid , so doing this since playerid is a variable it should print the id correctly???? format(result,sizeof(result), "%i.",number); new Text3D:PlayerLabel[MAX_PLAYERS]; PlayerLabel = Create3DTextLabel(result, 0xFFFFFFAA, 10.0, 20.0, 40.0, 20.0, 0); Attach3DTextLabelToPlayer(PlayerLabel, playerid, 0.0, 0.0, 0.7);
DM.pwn(76) : error 008: must be a constant expression; assumed zero
DM.pwn(79) : error 033: array must be indexed (variable "PlayerLabel")
DM.pwn(80) : error 035: argument type mismatch (argument 1)