SA-MP Forums Archive
slotted textdraw creating - 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: slotted textdraw creating (/showthread.php?tid=387373)



slotted textdraw creating - EV007 - 24.10.2012

pawn Код:
new PlayerText:DamageText0[6][MAX_SLOTS] = {PlayerText:INVALID_TEXT_DRAW,...};
new PlayerText:DamageText1[6][MAX_SLOTS] = {PlayerText:INVALID_TEXT_DRAW,...};
pawn Код:
error 029: invalid expression, assumed zero
How can I fix this? I really need this kind of function.


Re: slotted textdraw creating - MP2 - 24.10.2012

I believe ****** meant to say that you can't initialise multi-dimensional arrays like that.

You'll have to set them under OnGameModeInit or when the player connects.