How to check for a certain random choice
#3

pawn Код:
new EngineRandom[2][30] =
{
    { 1 ,"* Engine started."},
    { 0,"* Engine start failed." }
};
make for example
pawn Код:
new rand = random(sizeof(EngineRandom));

SendCientMessage(playerid,COLOR_YOURS,EngineRandom[rand][1]);
EngineOn[vehicleid] = EngineRandom[rand][0];
Reply


Messages In This Thread
How to check for a certain random choice - by Jochemd - 10.09.2010, 19:04
Re: How to check for a certain random choice - by LarzI - 10.09.2010, 19:16
Re: How to check for a certain random choice - by Voldemort - 10.09.2010, 19:18
Re: How to check for a certain random choice - by [03]Garsino - 10.09.2010, 19:50

Forum Jump:


Users browsing this thread: 1 Guest(s)