public KitCarro(playerid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(i);
if(GetPlayerVehicleSeat(playerid) == 0)
{
new Float:health, engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 250)
{
GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicle,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Quebrado [vehicle] = 1;
RepairCar[i] = GetPlayerVehicleID(i);
SetVehicleHealth(RepairCar[i], 300.0);
SendClientMessage(i, COLOR_RED, "O Seu veнculo bateu o motor, chame um mecвnico(/servico mecanico) ou use seu kit(/kitcarro) !");
GameTextForPlayer(i,"~r~VEICULO QUEBRADO~n~~w~ Chame um mecanico ou use um~n~~w~ KIT[/kitcarro]", 5000, 1);
return 1;
}
}
}
}
return 1;
}
So da Este Erro:
(63912) : error 025: function heading differs from prototype Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. Na Public: public KitCarro(playerid) |
public KitCarro(playerid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(i);
if (GetPlayerVehicleSeat(playerid) == 0)
{
new Float:health, engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if (health < 250)
{
GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicle,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Quebrado [vehicle] = 1;
RepairCar[i] = GetPlayerVehicleID(i);
SetVehicleHealth(RepairCar[i], 300.0);
SendClientMessage(i, COLOR_RED, "O Seu veнculo bateu o motor, chame um mecвnico(/servico mecanico) ou use seu kit(/kitcarro) !");
GameTextForPlayer(i,"~r~VEICULO QUEBRADO~n~~w~ Chame um mecanico ou use um~n~~w~ KIT[/kitcarro]", 5000, 1);
return 1;
}
}
}
}
return 1;
}