Check to see if something is in an array
#4

pawn Code:
for (new i = 0; i < sizeof(RandomRegularVehicle); i++)
        if(CarInfo[idx][cModel] != RandomRegularVehicle[i][0]) return SendClientMessage(playerid, COLOR_RED, "You cannot sell this type of vehicle here");
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)