22.11.2010, 05:59
Okay,
So once again I ran into an issue with my ATC system,
It should be chooseing a random name from the Table, Yet it does not.
CODE:
Command:
On a Side note:
was also tried and un sucessful.
So once again I ran into an issue with my ATC system,
It should be chooseing a random name from the Table, Yet it does not.
CODE:
pawn Code:
new ATCNames[][] = {
"Tango 109",
"Foxtrot 102",
"Adam 554",
"Cactus 1585",
"Julet 282",
"Delta 102",
"American 22",
"United 93",
"Alpha 2321",
"Echo 9",
"Echo 997",
"juliet 882"
};
pawn Code:
// ***** ATC Request Take Off *****
if (strcmp("/takeoff", cmdtext, true) == 0)
{
new string[128];
new location[MAX_ZONE_NAME];
GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
format(string,sizeof string,"*** [ATC] %s requesting permission to take off from %s, Over ***",strval(ATCNames[playerid]),location);
SendMessageToATC(string);
format(string,sizeof string,"*** [ATC] %s requesting permission to take off from %s, Over ***",strval(ATCNames[playerid]),location);
SendClientMessage(playerid,COLOR_YELLOW,string);
ATCAllow[playerid] = 1;
return 1;
}
pawn Code:
ATCNames[random(sizeof(ATCNames))]