15.05.2014, 10:28
Because you did:
when it should be "playerid" instead of "MAX_PLAYERS" and cdveh is 0 and then using:
will cause the run time error because you basically do: 0-400 which results to a negative index. You must check if the modelid is not 0 and subtract.
pawn Код:
new cdveh = GetPlayerVehicleID(MAX_PLAYERS);
pawn Код:
GetVehicleName(cdveh)