SA-MP Forums Archive
Globalstring - 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: Globalstring (/showthread.php?tid=633342)



Globalstring - ElMaestro123 - 29.04.2017

Is it ok to add new globalstring[512]; on start of command where i have to use it or is there any other way to define it through whole script without adding new for every command?


Re: Globalstring - Sebz - 29.04.2017

Adding it within brackets will make it private within those brackets. If you make it outside of any brackets toward the top of your script it should work anywhere.

Go for 128 rather than 512 though if you're using it for player messages.


Re: Globalstring - SyS - 29.04.2017

that's a bad practice...


Re: Globalstring - Sebz - 29.04.2017

Quote:
Originally Posted by SyS
Посмотреть сообщение
that's a bad practice...
Correct, I should've been clear about that, but he's probably gonna do it either way.