07.10.2013, 10:46
Do you know what the code you wrote does?
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:
If you want to do something, then please explain it.
pawn Код:
if(pBloodtype == 1)
{
if(pBloodtype == 2)
{
if(pBloodtype == 3)
{
if(pBloodtype == 4)
{
if(pBloodtype == 5)
{
if(pBloodtype == 6)
{
PlayerInfo[playerid][BloodType] = pBloodtype;
}
}
}
}
}
}
pawn Код:
stock BLOODTYPE(playerid)
{
new pBloodtype;
pBloodtype = 1 + random(6);
PlayerInfo[playerid][BloodType] = pBloodtype;
return pBloodtype;
}