10.06.2012, 09:42
pawn Код:
if(strcmp(cmd, "/fuelcars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new TD_String[25];
if(PlayerInfo[playerid][pAdmin] >= 4)
{
for(new veh=0;veh<MAX_VEHICLES;veh++)
{
VehicleFuel[veh] = 100;
format(TD_String, sizeof(TD_String), "%d", VehicleFuel[veh]);
}
TextDrawSetString(Text:Values[playerid][3], TD_String);
SendClientMessage(playerid, COLOR_GREY, " All cars filled with Fuel ! ");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not an Admin ! ");
return 1;
}
}
return 1;
}
but inside the loop the fuel of all vehicles is set into 1 tesdraw which will not work the way u need!
i dont know what ur trying to do by that so ..