02.12.2012, 18:45
I'm assigning random flightnumbers to aircraft, however, when I try to format the string into a message nothing gets displayed..
Blank:
Код:
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)]; }
Код:
format(sHold, sizeof sHold, "[Radio] #%s: %s", vInfo[iID][FlightNR], params);