Public() help
#2

random is integer so should be %d

pawn Код:
public GMChange()
{
    new str[128], rnd = random(4);

    format(str,sizeof(str),">> Your next mission will be: {F2C80C}%d {FFFFFF}...please wait.",rnd);
    SendClientMessageToAll(-1,str);

    format(str,sizeof(str),">> Changing mission, next will be: %d", rnd);
    IRC_GroupSay(groupID, IRC_CHANNEL, str);

    switch(rnd)
    {
        case 0: SendRconCommand("changemode gmone");
        case 1: SendRconCommand("changemode gmtwo");
        case 2: SendRconCommand("changemode gmthree");
        default: SendRconCommand("changemode gmfour");
    }
    return 1;
}
Reply


Messages In This Thread
Public() help - by Face9000 - 08.10.2015, 21:24
Re: Public() help - by Jefff - 08.10.2015, 21:57
Re: Public() help - by Face9000 - 09.10.2015, 09:44
Re: Public() help - by Hessu - 09.10.2015, 10:02
Re: Public() help - by Evocator - 09.10.2015, 10:09
Re: Public() help - by jlalt - 09.10.2015, 10:10
Re: Public() help - by AbyssMorgan - 09.10.2015, 10:28
Re: Public() help - by Sew_Sumi - 09.10.2015, 13:30
Re: Public() help - by Face9000 - 09.10.2015, 20:14
Re: Public() help - by AbyssMorgan - 09.10.2015, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)