error 035: argument type mismatch
#1

Код:
error 035: argument type mismatch (argument 2)
warning 213: tag mismatch
help how to fix?
Код:
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;
}
Reply
#2

pawn Код:
GetVehicleHealth(GetPlayerVehicleID(i), vhealth);
Reply
#3

That's not the problem..
But I tried downloading the script and compiled it, got no errors

Try to re-download it
Reply
#4

thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)