loop + rep
#1

hey,well,i got a code,for cars,it checks if the vehicle id is owned by the player id you write,but here is the code of it:
pawn Код:
new id = PlayerInfo[playerid][pCar][0], id2 = PlayerInfo[playerid][pCar][1], id3 = PlayerInfo[playerid][pCar][2];
            if(veh != CarInfo[id][c_ID] && veh != CarInfo[id2][c_ID] && veh != CarInfo[id3][c_ID]){
            if(CarInfo[PlayerInfo[playerid][pKeys]][c_ID] != veh){
                return 1;
            }
        }
it checks if player's car 1 or 2 or 3 is the vehicle id,but i have changed it to 20,how can i loop them so if any car of his cars,from 0 to 20 is that vehicle id,it notices?
Reply


Messages In This Thread
loop + rep - by iBots - 13.06.2014, 07:57
Re: loop + rep - by Amrev - 13.06.2014, 08:08
Re: loop + rep - by iBots - 13.06.2014, 08:31
Re: loop + rep - by Ciandlah - 13.06.2014, 08:37
Re: loop + rep - by iBots - 13.06.2014, 08:40
Re: loop + rep - by Ciandlah - 13.06.2014, 08:42
Re: loop + rep - by iBots - 13.06.2014, 08:49
Re: loop + rep - by Ciandlah - 13.06.2014, 08:56

Forum Jump:


Users browsing this thread: 2 Guest(s)