Setting random amount (Min-Max)
#8

Quote:
Originally Posted by weedxd
Посмотреть сообщение
On this line i have the following warn:
Код HTML:
amount = random (MIN_RAND,MAX_RAND);
Код HTML:
warning 202: number of arguments does not match definition
Definition looks like this.
Код HTML:
//Dropcar
new g_var[MAX_PLAYERS];
#define MIN_RAND 100
#define MAX_RAND 250
i have this code too will help you
pawn Код:
stock randomnumber(min, max)
{
    new rand = random(max-min)+min;
    return rand;
}
and change
pawn Код:
amount = randomnumber(MIN_RAND,MAX_RAND);
that working for me
Reply


Messages In This Thread
Setting random amount (Min-Max) - by weedxd - 02.10.2014, 10:36
Re : Setting random amount (Min-Max) - by AmirRFCNR - 02.10.2014, 10:47
Re: Setting random amount (Min-Max) - by weedxd - 02.10.2014, 10:58
Re: Re : Setting random amount (Min-Max) - by Vince - 02.10.2014, 11:06
Re: Setting random amount (Min-Max) - by PMH - 02.10.2014, 11:08
Re: Re : Setting random amount (Min-Max) - by weedxd - 02.10.2014, 11:09
Re: Setting random amount (Min-Max) - by weedxd - 02.10.2014, 11:11
Re : Re: Setting random amount (Min-Max) - by AmirRFCNR - 02.10.2014, 11:27
Re: Setting random amount (Min-Max) - by Vince - 02.10.2014, 11:30
Re: Setting random amount (Min-Max) - by weedxd - 02.10.2014, 11:32

Forum Jump:


Users browsing this thread: 1 Guest(s)