SA-MP Forums Archive
Question about string[0] = EOS; - 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: Question about string[0] = EOS; (/showthread.php?tid=656359)



Question about string[0] = EOS; - NexyAG - 14.07.2018

Hello Community, i have one question for all
does
Код HTML:
string[0] = EOS(\0);
speeds up anything (like does it affect ingame script speed/does it optimise script or what) ?


Re: Question about string[0] = EOS; - Eoussama - 14.07.2018

EOS stands for End Of String, it's a predefined constant with the value of 0, it's just another way to assign the null terminator, so by doing string[0] = EOS you're theoretically emptying the sting, for more information about how strings operate, read this tutorial: https://sampforum.blast.hk/showthread.php?tid=654471
It's massive, so take your time.