SA-MP Forums Archive
Gamemode study - 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: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Gamemode study (/showthread.php?tid=249927)



Gamemode study - Panormitis - 21.04.2011

Hello WOrld, my name is PAnormitis, I am a newbe scripter and I need your help if you can help me! I want to study a very simple gamemode but I can't find one, can you suggest me a very simple one to study and learn! (I don't care what type of gamemode)


Re: Gamemode study - [BKR]LUCAGRABACR - 21.04.2011

LVDM from the default SA-MP's GM's. It's my first GM too .


Re: Gamemode study - NitoPSG - 21.04.2011

Quote:
Originally Posted by [BKR]LUCAGRABACR
Посмотреть сообщение
LVDM from the default SA-MP's GM's. It's my first GM too .
the first you create or the first who study :S


Re: Gamemode study - Panormitis - 21.04.2011

Is there any easy RP script for beginners to study??


Re: Gamemode study - Mean - 21.04.2011

Well, you can use Vortex Roleplay, Godfather is bad for learning, in GF you just learn to use slowest methods and [ 256 ] strings. So, Vortex RP.


Re: Gamemode study - Panormitis - 21.04.2011

Quote:
Originally Posted by Mean
Посмотреть сообщение
Well, you can use Vortex Roleplay, Godfather is bad for learning, in GF you just learn to use slowest methods and [ 256 ] strings. So, Vortex RP.
what is [ 256 ] strings?


Re: Gamemode study - alpha500delta - 21.04.2011

new string[x], X defines how many cells are reserved for that string, if you do new string[256] it will reserve 256 cells for that string, but since most strings are not bigger than 128, it's useless, so there are still 256-128 = 128 unused slots, wich affects you're ram.


Re: Gamemode study - Panormitis - 21.04.2011

Quote:
Originally Posted by alpha500delta
Посмотреть сообщение
new string[x], X defines how many cells are reserved for that string, if you do new string[256] it will reserve 256 cells for that string, but since most strings are not bigger than 128, it's useless, so there are still 256-128 = 128 unused slots, wich affects you're ram.
Sorry for being tiring :/, but what is cells? (sorry again, i am newbe)


Re: Gamemode study - Joe Staff - 21.04.2011

Each cell represents 4 bits of ram, so it dynamically contains a number (which can represent a letter, float etc). So string[128] can hold 128 letters, numbers, whatever

Read beginning guides here wiki.sa-mp.com