07.10.2013, 10:35
So I have a problem I need to generate random number and save it..
I have something like this:
But it ain't working... Idk why..
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;
}