how works random?
#1

how works random? I need it, I tried once but not work random
pawn Код:
if(ShitInfo[playerid][pJump] == 1)
    {
        DisablePlayerCheckpoint(playerid);
        scm(playerid,COLOR_GREEN,"( ! ) Go to next check point !");
        new rand = random(1);
        if(rand == 0)
        {
        ShitInfo[playerid][pJump]++;
        SetPlayerCheckpoint(playerid,719.6017,-1421.3615,21.6963,2);
        }
        else if(rand == 1)
        {
        SetPlayerCheckpoint(playerid,815.9489,-1381.9213,23.5823,2);
        ShitInfo[playerid][pJump]=12;
        }
        return 1;
    }
could somebody show or explain how works random ?
Reply


Messages In This Thread
how works random? - by mineralo - 17.03.2012, 10:54
Re: how works random? - by T0pAz - 17.03.2012, 10:59
Re: how works random? - by mineralo - 17.03.2012, 11:00
Re: how works random? - by Vince - 17.03.2012, 11:04
Re: how works random? - by mineralo - 17.03.2012, 11:43

Forum Jump:


Users browsing this thread: 3 Guest(s)