SA-MP Forums Archive
[Tutorial] [FirstTuto] Some Tips to optimize your script! - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] [FirstTuto] Some Tips to optimize your script! (/showthread.php?tid=630214)



[FirstTuto] Some Tips to optimize your script! - TitanX - 11.03.2017

this topic canceled,

check out this better https://sampforum.blast.hk/showthread.php?tid=580289


Re: [FirstTuto] Some Tips to optimize your script! - TheLeech - 11.03.2017

Pretty useful for newbies, Thanks.


Re: [FirstTuto] Some Tips to optimize your script! - SyS - 11.03.2017

Quote:

PHP Code:
new mp1;
new 
mp2;
new 
mp3;
new 
mp4;
new 
mp5;
new 
mp6;
new 
mp7;
new 
mp8;
new 
mp9
indestand of this use just
PHP Code:
new mp[10]; 
NOTE: less lines fast loading
nope it's not fast.Its slower.


Re: [FirstTuto] Some Tips to optimize your script! - StrikerZ - 11.03.2017

Quote:
Originally Posted by Sreyas
View Post
nope it's not fast.Its slower.
As Sreyas said,it's slower, check this topic.


Re: [FirstTuto] Some Tips to optimize your script! - RyderX - 11.03.2017

well a pretty nice tutorial it'd help a lot of newbies.
Just fix some typo in your thread


Re: [FirstTuto] Some Tips to optimize your script! - Vince - 11.03.2017

Quote:
Originally Posted by TitanX
View Post
PHP Code:
"H""e""l, "l", "o" = 5 chars 
so just use
PHP Code:
static String[5] = "Hello"
That is not correct because you also need to account for the null-terminator. In practice I will usually round it up to the nearest multiple of 4.


Re: [FirstTuto] Some Tips to optimize your script! - renatog - 11.03.2017

I don't recommend this tutorial even for newbies. Some things are wrong, some things are not related to optimization, the topic isn't well organized.


Re: [FirstTuto] Some Tips to optimize your script! - TitanX - 11.03.2017

thanks guys for you feed backs, i really learn from it and trying to fix those things