Making a random SendClientMessage
#1

Hi
I've currently got this code:

{
gPlayerLogged[playerid] = 1;
printf("%s has entered his password",PlayerInfo[playerid][pName]);
SendClientMessage(playerid, COLOR_WHITE,"Your login details are being checked by our secure server - Please wait...");
// new timer for login -> spawn
SetTimerEx("SpawnPlayerEx",5000,0,"i",playerid);

}

How could I get so that the next line is random - maybe from a selection of 5.

I presume I'd use random - but I would appreciate it if someone could demonstrate how. Is it 'new random'?

Matt
Reply


Messages In This Thread
Making a random SendClientMessage - by Mattjones17 - 01.11.2009, 17:42
Re: Making a random SendClientMessage - by dice7 - 01.11.2009, 18:08
Re: Making a random SendClientMessage - by Peter_Corneile - 01.11.2009, 19:12

Forum Jump:


Users browsing this thread: 2 Guest(s)