getarg - function - 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: getarg - function (
/showthread.php?tid=393693)
getarg - function -
Kyle - 19.11.2012
Edited.
Re: getarg - function -
[HK]Ryder[AN] - 19.11.2012
try this
pawn Код:
new rand = Random(sizeof(PoliceMissions));
if(rand == 2 || 5) return /*stock name here to start over again i guess*/
else return rand;
Re: getarg - function -
Konstantinos - 19.11.2012
pawn Код:
stock ReturnRandomPolice( num1, num2 )
{
new
rand = random( num2 - num1 ) + num1
;
if( rand == num1 || rand == num2 ) rand = random( num2 - num1 ) + num1;
return rand;
}
Re: getarg - function -
Kyle - 19.11.2012
Completed.
Re: getarg - function -
Kyle - 19.11.2012
Completed this issue myself.
Thanks