Fuel - [Problem]
#5

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;
                    }
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)