how can i make random messages?
#2

Put this at your command.
pawn Код:
new gla;
gla=random(10); // Type here the number of messages you have.
switch(gla)
{
case 0: SendClientMessage(playerid, 0xFFFFFFFF, "This is the first message");
case 1: SendClientMessage(playerid, 0xFFFFFFFF, "This is the sencond message");
case 2: SendClientMessage(playerid, 0xFFFFFFFF, "This is the third message");
//....
}
I hope this helps you.
Just tell me if you need more help.
Reply


Messages In This Thread
how can i make random messages? - by hardstop - 04.04.2010, 13:14
Re: how can i make random messages? - by Jeffry - 04.04.2010, 14:11
Re: how can i make random messages? - by hardstop - 04.04.2010, 14:48
Re: how can i make random messages? - by Jeffry - 04.04.2010, 16:22

Forum Jump:


Users browsing this thread: 2 Guest(s)