02.12.2012, 19:03
So you're setting it to:
Also note that random(x) returns a MAXIMUM of x-1.
pawn Код:
for(new i=0;i<sizeof(vInfo[iID][FlightNR]);i++)
{
new RandomFlight = random(2);
switch(RandomFlight)
{
case 0:
{
format(vInfo[iID][FlightNR], sizeof(vInfo[iID][FlightNR]), "%s%s",vInfo[iID][FlightNR],RandomLetter());
}
case 1:
{
format(vInfo[iID][FlightNR], sizeof(vInfo[iID][FlightNR]), "%s%i",vInfo[iID][FlightNR],RandomNumber());
}
}
}