How to save random number!
#2

Do you know what the code you wrote does?

pawn Код:
if(pBloodtype == 1)
{
    if(pBloodtype == 2)
    {
        if(pBloodtype == 3)
        {
            if(pBloodtype == 4)
            {
                if(pBloodtype == 5)
                {
                    if(pBloodtype == 6)
                    {
                        PlayerInfo[playerid][BloodType] = pBloodtype;
                    }
                }
            }
        }
    }
}
Of course, it's not going to work. If you want to get a random number, assign it to BloodType and return that random number, then use:
pawn Код:
stock BLOODTYPE(playerid)
{
    new pBloodtype;
    pBloodtype =  1 + random(6);
    PlayerInfo[playerid][BloodType] = pBloodtype;
    return pBloodtype;
}
If you want to do something, then please explain it.
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: 2 Guest(s)