Random+Defined HELP
#6

Quote:
Originally Posted by Fratello
Посмотреть сообщение
If I tell you how to make it , will you end up requesting the code?
of course no

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
Here you are bro, I think it will help you:
PHP код:
new Places randomEx(1,3);
switch(
Places)
{
    case 
1GivePlayerMoney(playerid,1000+RandomEx(100,300)); // 1k + Random between 100 and 300
    
case 2GivePlayerMoney(playerid,600+RandomEx(100,200)); // 1k + Random between 100 and 200
    
case 3GivePlayerMoney(playerid,300+RandomEx(0,100)); // 1k + Random between 0 and 100

There are the stocks if you didn't definded them:
PHP код:
stock randomEx(minnum cellminmaxnum cellmax) return random(maxnum minnum 1) + minnum
PHP код:
stock RandomEx(minmax)
{
    new 
output;
    
output max-min;
    
output random(output);
    
output min+output;
    return 
output;

+REP me if I helped!
thats what i wanted dude yee
+rep both of you(kinda kraeror only deserves it but hey why not)
btw it says i must spread it before giving it to you again xDD
Reply


Messages In This Thread
Random+Defined HELP - by n00blek - 11.10.2017, 17:07
Re: Random+Defined HELP - by Fratello - 11.10.2017, 17:11
Re: Random+Defined HELP - by n00blek - 11.10.2017, 17:13
Re: Random+Defined HELP - by Fratello - 11.10.2017, 17:16
Re: Random+Defined HELP - by Kraeror - 11.10.2017, 17:16
Re: Random+Defined HELP - by n00blek - 11.10.2017, 17:19
Re: Random+Defined HELP - by 10MIN - 11.10.2017, 18:04
Re: Random+Defined HELP - by n00blek - 11.10.2017, 18:08
Re: Random+Defined HELP - by Fratello - 12.10.2017, 09:27
Re: Random+Defined HELP - by Kraeror - 12.10.2017, 12:12

Forum Jump:


Users browsing this thread: 1 Guest(s)