error 035: argument type mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 035: argument type mismatch (
/showthread.php?tid=541940)
error 035: argument type mismatch -
Slicebook - 15.10.2014
Код:
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;
}
Re: error 035: argument type mismatch -
silenthill - 15.10.2014
pawn Код:
GetVehicleHealth(GetPlayerVehicleID(i), vhealth);
AW: error 035: argument type mismatch -
Macronix - 15.10.2014
That's not the problem..
But I tried downloading the script and compiled it, got no errors
Try to re-download it
Re: error 035: argument type mismatch -
Slicebook - 15.10.2014
thanks!