19.09.2015, 14:45
It actually depends on your array..if the example above didn't work, and you wanna check for all the army vehicles, do this.
pawn Код:
if(GetPlayerClass[playerid] == ARMY_CLASS)
{
for(new i; i<20; i++)//change 20 to "sizeof(ArmyVeh)" if you want it for all the Army Vehicles..
{
if(vehicleid == ArmyVeh[i])
{
ClearAnimations(playerid);
GameTextForPlayer(playerid,"Army Vehicle",3000,4);
}
}
}