I have a problem with my command - 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: I have a problem with my command (
/showthread.php?tid=614758)
I have a problem with my command -
GabiXx - 12.08.2016
T/C.
Re: I have a problem with my command -
AnantPratap - 12.08.2016
Add this on the top of the script.
Re: I have a problem with my command -
GabiXx - 12.08.2016
I need for more value, like from 1$ to 5.000.000$.
Re: I have a problem with my command -
FreAkeD - 12.08.2016
https://sampwiki.blast.hk/wiki/Random
Re: I have a problem with my command -
Konstantinos - 12.08.2016
Remove any code you have defined "OValoare" and at the top of
OnPlayerPickUpPickup callback:
pawn Код:
new OValoare = random(5000000) + 1;
this will generate a random number between 0-4999999 and will add 1 on the result to make it 1-5000000.
Re: I have a problem with my command -
GabiXx - 12.08.2016
Look what i take when i compile what yo give me:
http://imgur.com/a/Xw2zx
Re: I have a problem with my command -
Konstantinos - 12.08.2016
I said "at the top of
OnPlayerPickUpPickup callback". Adding it outside of any function will cause the compiler crash.
Re: I have a problem with my command -
GabiXx - 12.08.2016
i found an other solution, but thx for try to helping me.