Fuel - [Problem]
#10

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;
                    }
Loop all vehicles with a simle MAX_VEHICLES.

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 ..
Reply


Messages In This Thread
Fuel - [Problem] - by Dan_Barocu - 10.06.2012, 09:20
Re : Fuel - [Problem] - by ricardo178 - 10.06.2012, 09:22
Re: Fuel - [Problem] - by Dan_Barocu - 10.06.2012, 09:24
Re : Fuel - [Problem] - by ricardo178 - 10.06.2012, 09:27
Re: Fuel - [Problem] - by Dan_Barocu - 10.06.2012, 09:33
Re : Fuel - [Problem] - by ricardo178 - 10.06.2012, 09:36
Re: Fuel - [Problem] - by ReVo_ - 10.06.2012, 09:39
Re: Fuel - [Problem] - by Dan_Barocu - 10.06.2012, 09:40
Re : Re: Fuel - [Problem] - by ricardo178 - 10.06.2012, 09:41
Re: Fuel - [Problem] - by park4bmx - 10.06.2012, 09:42

Forum Jump:


Users browsing this thread: 2 Guest(s)