Thread: Fuel
View Single Post
Old 22/11/2017, 09:10 AM   #9
Mivco
Big Clucker
 
Mivco's Avatar
 
Join Date: Mar 2015
Location: Slovakia
Posts: 60
Reputation: 0
Default Re: Fuel

Quote:
Originally Posted by Lucases View Post
PHP Code:
CMD:tankovat(playerid,params[])
{
    new 
string[128];
    if(
PlayerInfo[playerid][Admin] < 2) return SendClientMessage(playerid,-1,"{FF0000}[ADMIN] {FFFFFF}Nemas AdminLevel 2");
      
format(string,sizeof(string),"Administrator %s all vehicle fuel",PlayerName(playerid));
       
SendClientMessageToAll(-1,string);
    for(new 
iMAX_VEHICLES;i++)
    {
          If(
IsValidVehicle(vehicleid)) Benzin[i] = 100;
    }
    return 
1;



HTML Code:
for(new i; i < MAX_VEHICLES;i++)
{
        If(IsValidVehicle(vehicleid)) Benzin[i] = 100;
}
It estimates the error because the vehicleid did not find it
Mivco is offline   Reply With Quote