if(newstate == PLAYER_STATE_DRIVER)
{
format(string, 128, \"Benzin: %%%d\", Benzin[GetPlayerVehicleID(playerid)]);
TextDrawSetString(Fuel[playerid], string),
TextDrawShowForPlayer(playerid, Fuel[playerid]),
TextDrawShowForPlayer(playerid, BlackBox),
TextDrawTextSize(Moving[playerid], (354.0 - (Benzin[GetPlayerVehicleID(playerid)] / DIVBY)), 0.000000),
TextDrawShowForPlayer(playerid, Moving[playerid]);
if (Benzin[GetPlayerVehicleID(playerid)] < 1)
{
Benzin[GetPlayerVehicleID(playerid)] = 1;
format(string2, 128, \"Benzin: %%%d\", Benzin[GetPlayerVehicleID(playerid)]);
TextDrawSetString(Fuel[playerid], string2),
TextDrawShowForPlayer(playerid, Fuel[playerid]),
TextDrawTextSize(Moving[playerid], (354.0 - (Benzin[GetPlayerVehicleID(playerid)] / DIVBY)), 0.000000),
TextDrawShowForPlayer(playerid, Moving[playerid]);
}
if(Benzin[GetPlayerVehicleID(playerid)] < 1)
{
Benzin[GetPlayerVehicleID(playerid)] = 0;
GameTextForPlayer(playerid, \"~n~~n~~n~~n~~n~~n~~n~~w~Nincs elég benzin a jármûben.\", 4000, 3);
RemovePlayerFromVehicle(playerid);
}
}
else if (newstate == PLAYER_STATE_ONFOOT)
{
TextDrawHideForPlayer(playerid, Fuel[playerid]),
TextDrawHideForPlayer(playerid, BlackBox),
TextDrawHideForPlayer(playerid, Moving[playerid]);
TogglePlayerControllable(playerid, true);
}
return 1;
}
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
Aki tud segítsen , köszönöm.