30.11.2015, 19:27
when i type this:
CMD:air(playerid, params[])
{
new name, npc;
if(pInfo[playerid][Donor]<2 && pInfo[playerid][Rank] < RANK_CAPTAIN) return SendClientMessage(playerid, RED, "ERROR: You need to be drank 2/Captien to use this command");
if(sscanf(params, "i", name)) return SendClientMessage(playerid, RED, "ERROR: /airstrike [UA]");
if(name == UA)
{
name = ConnectNPC("air","air");
ballalalalalalalalal
}
return 1;
}
but i get this: error 017: undefined symbol "UA"
i dont want UA to be varaible nor definition
i wanna it be like
/air UA
he will pass and countinue the CMD, when i replace UA with 1 and type /air 1 it works but the problem is in the UA he thinks it is a varaible .....
CMD:air(playerid, params[])
{
new name, npc;
if(pInfo[playerid][Donor]<2 && pInfo[playerid][Rank] < RANK_CAPTAIN) return SendClientMessage(playerid, RED, "ERROR: You need to be drank 2/Captien to use this command");
if(sscanf(params, "i", name)) return SendClientMessage(playerid, RED, "ERROR: /airstrike [UA]");
if(name == UA)
{
name = ConnectNPC("air","air");
ballalalalalalalalal
}
return 1;
}
but i get this: error 017: undefined symbol "UA"
i dont want UA to be varaible nor definition
i wanna it be like
/air UA
he will pass and countinue the CMD, when i replace UA with 1 and type /air 1 it works but the problem is in the UA he thinks it is a varaible .....