02.07.2014, 16:24
Код:
new fixprice = floatround(vhealth, floatround_round);
Код:
GetVehicleHealth(vehicleid, vhealth); //Tag Mismatch
Код:
fixprice = 1000 - vhealth;
new fixprice = floatround(vhealth, floatround_round);
GetVehicleHealth(vehicleid, vhealth); //Tag Mismatch
fixprice = 1000 - vhealth;
fixprice = 1000 - Float:vhealth; //without 'Float:' too
new vhealth;
new Float: vhealth;
new Float: vhealth;
GetVehicleHealth(vehicleid, vhealth);
new fixprice = (1000 - (floatround(vhealth, floatround_round)));
fixprice = 1000 - vhealth;
|
i said u man now here tag mismatch
Код:
fixprice = 1000 - vhealth; |
new vhealth;
new Float: vhealth;
fixprice = (1000 - (floatround(vhealth, floatround_round)));
else if ( !strcmp( cmdtext, "/fix", true ) )
{
new
Float: vHealth,
fixPrice = 0;
GetVehicleHealth( GetPlayerVehicleID( playerid ), vHealth );
fixPrice = ( 1000 - ( floatround( vHealth, floatround_round ) ) );
RepairVehicle( GetPlayerVehicleID( playerid ) );
GivePlayerMoney( playerid, - fixPrice );
new
fmat[ 128 ];
format( fmat, sizeof ( fmat ), "Vehicle fixed. Cost: $%d", fixPrice );
SendClientMessage( playerid, -1, fmat );
return 1;
}