How to save random number!
#1

So I have a problem I need to generate random number and save it..

I have something like this:

pawn Код:
stock BLOODTYPE(playerid)
{
   new pBloodtype;
   pBloodtype =  1 + random(6);
   if(pBloodtype == 1)
   if(pBloodtype == 2)
   if(pBloodtype == 3)
   if(pBloodtype == 4)
   if(pBloodtype == 5)
   if(pBloodtype == 6)
   PlayerInfo[playerid][BloodType] = pBloodtype;
   return pBloodtype;
}
But it ain't working... Idk why..
Reply


Messages In This Thread
How to save random number! - by Scrillex - 07.10.2013, 10:35
Re: How to save random number! - by Konstantinos - 07.10.2013, 10:46
Re: How to save random number! - by Scrillex - 07.10.2013, 10:56
Re: How to save random number! - by Konstantinos - 07.10.2013, 11:03
Re: How to save random number! - by Scrillex - 07.10.2013, 11:16

Forum Jump:


Users browsing this thread: 4 Guest(s)