Giving a vehicle a unique id
#1

Ok, ive finally made my vehicle system partly work... problem is that its not setting a unique id meaning that if i would to buy 2 cars it would only kick me out one of them if i wasnt the owner..

So whats wrong?

pawn Код:
//out of the call back
new vehicles[100];

//in callback
new ID = 0;
while(ID < sizeof(vehicles) && vehicles[ID])
{
    ID++;
}
vehicles[ID] = ID;
Reply


Messages In This Thread
Giving a vehicle a unique id - by thefatshizms - 24.01.2013, 19:48
Re: Giving a vehicle a unique id - by ReDevilGames - 24.01.2013, 20:25

Forum Jump:


Users browsing this thread: 1 Guest(s)