01.11.2009, 17:42
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
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