15.10.2014, 17:55
Код:
error 035: argument type mismatch (argument 2) warning 213: tag mismatch
Код:
ERROR >> GetVehicleHealth(GetPlayerVehicleID(playerid), vhealth); WARNING>> format(string3, sizeof(string3), "~%s~%.0f.0", DamageColor(vhealth), vhealth); TextDrawSetString(VehicleHealth[i], string3);
https://sampforum.blast.hk/showthread.php?tid=505003 cSpeedo Speedometer error...
full code:
Код:
public Speedometer(playerid) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i)) { new string[32], string2[32], string3[10], Float:vhealth; format(string, sizeof(string), "~g~%s", VehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400]); TextDrawSetString(VehicleName[i], string); format(string2, sizeof(string2), "%d", GetPlayerSpeed(i, 0)); TextDrawSetString(VehicleSpeed[i], string2); GetVehicleHealth(GetPlayerVehicleID(playerid), vhealth); format(string3, sizeof(string3), "~%s~%.0f.0", DamageColor(vhealth), vhealth); TextDrawSetString(VehicleHealth[i], string3); } } return 1; }