Jump to content
  • 0

Crash la comnda /fill


Andrei.Sy

Question

Problema intalnita (descriere): Când cineva încearcă să folosească comanda [/fill] primeste crash
Ero(area / rile) / warning-(ul / urile): Nu am erori
Liniile de cod / sursa / script-ul(obligatoriu): :

Spoiler

CMD:fill(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        if(IsAtGasStation(playerid))
        {
              TogglePlayerControllable(playerid, 0);
            GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Se umple rezervorul~nAsteapta...",2000,3);
            SetTimer("Fillup",RefuelWait,0);
            Refueling[playerid] = 1;
        }
        else
        {
            SCM(playerid, COLOR_TEAL,"Benzina: {FFFFFF}Nu esti la benzinarie!");
        }
    }
    return 1;
}


Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da

Edited by Andrei.Sy
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
Acum 1 minut, Mister a spus:

Cred ca se referea la public fillup  sa ne arati

Spoiler

public Fillup()
{
    foreach(Player, i)
       {
           if(IsPlayerConnected(i))
           {
            new VID;
            new FillUp;
            new string[256];
            VID = GetPlayerVehicleID(i);
            FillUp = GasMax - Gas[VID];
            if(Refueling == 1)
            {
                if(GetPlayerMoney(i) >= FillUp+4)
                {
                    Refueling = 0;
                    TogglePlayerControllable(i, 1);
                    playerVariables[pMoney] -= businessVariables[11][bEnterPrice];
                    Gas[VID] = 100;
                    businessVariables[11][bVault] += businessVariables[11][bEnterPrice];
                    format(string,sizeof(string),"You have refulled your vehicle for %d$.",businessVariables[11][bEnterPrice]);
                    SendClientMessage(i,COLOR_TEAL,string);
                }
                   else
                   {
                       format(string,sizeof(string),"{999999}Nu ai $%d!",businessVariables[11][bEnterPrice]);
                    SendClientMessage(i,COLOR_TEAL,string);
                   }
             }
        }
    }
    return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.