SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 14/07/2018, 08:25 AM   #1
Little Clucker
Join Date: Oct 2017
Posts: 9
Reputation: 0
Default Question about string[0] = EOS;

Hello Community, i have one question for all
HTML Code:
string[0] = EOS(\0);
speeds up anything (like does it affect ingame script speed/does it optimise script or what) ?
NexyAG is offline   Reply With Quote
Old 14/07/2018, 08:43 AM   #2
Eoussama's Avatar
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,275
Reputation: 255
Default Re: Question about string[0] = EOS;

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:
It's massive, so take your time.

|===[Web taxi]===|
List of my work

|===[Interesting topics]===|
Semantic Versioning

Eoussama is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about string sam29 Scripting Help 1 13/09/2015 12:10 PM
Question about string ikbenremco Scripting Help 5 30/11/2011 05:05 PM
String question dawidek11 Scripting Help 1 31/10/2011 06:37 PM

All times are GMT. The time now is 08:10 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.