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



Help me - [IND]Crazy - 09.04.2014

how to make this to not random ?
i have this script
pawn Код:
new Gangid = random(100);
dini_IntSet(gFile(params),"GangID",Gangid);
i mean when i create a gang , gangid will be created from 1 to 100 , not a random
like a Player a create gang Test gangid 1
player b create gang Test2 gangid 2

sorry for bad english
Thanks Rep ++ for helped


Re: Help me - xVIP3Rx - 09.04.2014

You could do this
pawn Код:
new totalgangs;

//when player crates a gang

dini_IntSet(gFile(params),"GangID",totalgangs);
totalgangs += 1;