[crashdetect] "Array index out of bounds" [rep +++]
#5

Do you show the name of the vehicle? If so, you need to check if the modelid is between 400 and 611. Else it will crash your server.

In Speedometer_Update:

pawn Код:
new
    modelid = GetVehicleModel( GetPlayerVehicleID( playerid ) )
;
if( modelid >= 400 && modelid <= 611 )
{
    // rest of the code;
    // show the name of the vehicle
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)