Random problem :(
#7

pawn Код:
if (strcmp("/random", cmdtext, true, 6) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        new rand = random(4);
        new emo[12];
        if(rand == 0) { emo = "happy"; }
        else if(rand == 1) { emo = "very happy"; }
        else if(rand == 2) { emo = "lucky"; }
        else { emo = "sad"; }
        format(string, sizeof(string), "A player is  %s", emo);
        ProxDetector(10.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
    }
    return 1;
}
Reply


Messages In This Thread
Random problem :( - by i3Cookies - 07.12.2010, 09:59
Re: Random problem :( - by Mehtab - 07.12.2010, 10:02
Re: Random problem :( - by i3Cookies - 07.12.2010, 10:04
Re: Random problem :( - by Mehtab - 07.12.2010, 10:09
Re: Random problem :( - by Celson - 07.12.2010, 10:20
Re: Random problem :( - by nutzkung69 - 07.12.2010, 10:56
Re: Random problem :( - by Voldemort - 07.12.2010, 10:57

Forum Jump:


Users browsing this thread: 2 Guest(s)