23.10.2014, 17:44
Well I will tell you whats wrong with this.
1.) Use player textdraws currently this script would eventually fill all textdraw slots
2.) Incorrect velocity calculation 180.0 is the correct value
3.) I don't see much issue with using OnPlayerUpdate() it will make for a very smooth speedo yeah you could use a timer instead for a bit more optimization.
4.) No clean up code for unloading FS
5.) No start up code for loading FS
1.) Use player textdraws currently this script would eventually fill all textdraw slots
2.) Incorrect velocity calculation 180.0 is the correct value
pawn Код:
floatround(floatsqroot(floatabs(floatpower(Pos[0] + Pos[1] + Pos[2], 2))) * 180.0);
4.) No clean up code for unloading FS
5.) No start up code for loading FS