08.10.2015, 21:57
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;
}