Randomised string not displaying
#4

So you're setting it to:
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());
        }
    }
}
Also note that random(x) returns a MAXIMUM of x-1.
Reply


Messages In This Thread
Randomised string not displaying - by Intoxicated - 02.12.2012, 18:45
Re: Randomised string not displaying - by maramizo - 02.12.2012, 18:52
Re: Randomised string not displaying - by Intoxicated - 02.12.2012, 18:53
Re: Randomised string not displaying - by maramizo - 02.12.2012, 19:03
Re: Randomised string not displaying - by Intoxicated - 02.12.2012, 19:07
Re: Randomised string not displaying - by Intoxicated - 02.12.2012, 19:25
Re: Randomised string not displaying - by ReneG - 02.12.2012, 20:32
Re: Randomised string not displaying - by Intoxicated - 03.12.2012, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)