01/09/2021 18:48
Código:
forward ProcessGasolina(playerid, vehicleid);
public ProcessGasolina(playerid, vehicleid)
{
//new vehicleid = GetPlayerVehicleID(playerid);
if(!IsPlayerInVehicle(playerid, vehicleid))
{
PlayerTextDrawHide(playerid, viewgasolina[playerid]);
return 1;
}
new string[20];
format(string, sizeof(string), "Gasolina: %03d", VehicleData[vehicleid][vFuel]);
TextDrawSetString(viewgasolina[playerid], string); // ********** WARNIGNG AQUI ********
PlayerTextDrawShow(playerid, viewgasolina[playerid]);
return 1;
}
Sabe me dizer pq o Warning?
TextDrawSetString(viewgasolina[playerid], string);