SA-MP Forums Archive
error 028: invalid subscript (not an array or too many subscripts) - 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: error 028: invalid subscript (not an array or too many subscripts) (/showthread.php?tid=567936)



error 028: invalid subscript (not an array or too many subscripts) - MrCallum - 17.03.2015

Код:
   PlayerTextDrawSetString(playerid, Speedo[playerid], string);



Re: error 028: invalid subscript (not an array or too many subscripts) - SickAttack - 17.03.2015

Are you sure "Speedo[playerid]" is defined as a PlayerText?

pawn Код:
new PlayerText:Speedo[MAX_PLAYERS];



Re: error 028: invalid subscript (not an array or too many subscripts) - MrCallum - 17.03.2015

Thanks it worked.
When I enter a vehicle the speedometer does not show up?

Код:
public Speedometer(playerid)



Re: error 028: invalid subscript (not an array or too many subscripts) - SickAttack - 17.03.2015

Did you even show it to the player? lol

https://sampwiki.blast.hk/wiki/PlayerTextDrawShow