Randomised string not displaying
#1

I'm assigning random flightnumbers to aircraft, however, when I try to format the string into a message nothing gets displayed..

Код:
	if(IsAircraft(vehicleid))
	{
		new
			sHold[MAX_FLIGHT_NR+1];
		sHold[0]= RandomLetter();
		sHold[1]= RandomLetter();
	
		for(new i=2; i<MAX_FLIGHT_NR; i++)
		{
			sHold[i]= RandomNumber();
		}
		strpack(vInfo[vehicleid][FlightNR], sHold);
	}
Код:
stock RandomLetter()
{
	new
		Letters[27]= "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
	return Letters[random(26)];
}

stock RandomNumber()
{
	new
		Numbers[11]= "0123456789";
	return Numbers[random(10)];
}
Blank:
Код:
format(sHold, sizeof sHold, "[Radio] #%s: %s", vInfo[iID][FlightNR], params);
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)