30.07.2013, 15:50
Quote:
Do you get the id from
pawn Код:
pawn Код:
TIP: Use a function from SA:MP for checking if a vehicle is valid/exists (https://sampwiki.blast.hk/wiki/IsValidVehicle), instead of doing pawn Код:
|
The VehCreated[i] is for this:
pawn Код:
new ID = GetVehID();
VehInfo[ID][color1] =
....
pawn Код:
GetVehID()
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(VehCreated[i] == false) return i;
}
return -1;
}