10.06.2012, 09:33
but vehicle needs the c and look at my change..
pawn Код:
if(strcmp(cmd, "/fuelcars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
new vehicleid = GetPlayerVehicleID(playerid);
new TD_String[25];
VehicleFuel[c] = 100;
format(TD_String, 25, "%i %", VehicleFuel[vehicleid]);
TextDrawSetString(Text:Values[i][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;
}