Storing 3D Text in an array bugs code - 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)
+---- Forum: Discussion (
https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: Storing 3D Text in an array bugs code (
/showthread.php?tid=660730)
Storing 3D Text in an array bugs code -
coosmiyn - 11.11.2018
Hello. I am new to pawn and all of this. I know some C and this helped me a lot but there is something that I just do not understand.
Why I try to put different Text3Ds in a Text3D array (using Create3DTextLabel or CreateDynamic3DTextLabel for initialization to create the description for different houses) some of my code just bugs out. There are no errors, but when you log in, every pickup just isn't there and also the PlayerToPoint commands do not work anymore, like the ones checking if the player is on a pickup to display a certain text to the screen, which also doesn't happen.
Re: Storing 3D Text in an array bugs code -
Pottus - 12.11.2018
Sounds like you are trying to reference an array out of bounds, use the crash detect plugin and figure out where that is happening.