27.11.2016, 20:16
Quote:
|
The problem is that the function expects a vehicle ID so it can use GetVehicleModel function but you pass a vehicle model ID instead so it returns 0 as modelid. What I used to have in my old gamemode was similar to this:
pawn Код:
pawn Код:
By the way, you don't need to wrap the name of the vehicles in braces and it'd be advised to use arrays instead of Car1 to Car10. |

Код:
if(c1 == 0)
{
c1name = "Slot 1: Empty";
}
else if(c1 > 0)
{
c1name = "Slot 1: %s (Stored)", GetVehicleFriendlyName(c1, true);
}


