Detaljan opis problema: E ovako,uradio sam komandu /fill , i sada kada ukucam /fill 23 npr. meni pise "Punjenje goriva molimo sacekajte" i onda me Freezuje i tako moze da stoji ko zna koliko, da li neko moze da pomogne ewo wam i public FillUp i /fill komanda.............. 😢 😢 😢
Dio skripte: Ewo komande:
if(strcmp(cmd, "/fill", true) == 0)// By: GaRaGaN
{
if(IsAtGasStation(playerid))
{
if(GetPlayerState(playerid)!=2)
{
SCM(playerid, COLOR_YELLOW,"Morate biti na mestu vozaca da bi napunili gorivo!");
return 1;
}
GetPlayerVehicleID(playerid);
new ammount;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /fill ");
return 1;
}
if(Gas + ammount > 60) return SCM(playerid, COLOR_GRAD2, "U vas rezervoar ne moze da stane vise od 60 litara goriva!");
if(Gas < 60)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Punjenje goriva, molimo sacekajte",2000,3);
SetTimer("Fillup",RefuelWait,0);
Refueling = ammount;
}
else GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Rezervoar je pun",2000,3);
}
else SCM(playerid,COLOR_GREY,"** Niste na pumpi!");
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno): Ewo i public-a
public Fillup()
{
for(new i=0; i {
if(IsPlayerConnected(i))
{
new VID;
new FillUp;
new string;
VID = GetPlayerVehicleID(i);
FillUp = GasMax - Gas;
if(Refueling == 1)
{
if(IsACopCar(VID) || IsAnFbiCar(VID) || IsAnAmbulance(VID) || IsAnFiretruck(VID) || IsNgCar(VID) || IsAGovernmentCar(VID))
{
Gas += FillUp;
FillUp = FillUp * sBizzInfo;
format(string,sizeof(string),"* Vozilo je napunjeno, za: $%d.",FillUp);
SendClientMessage(i,COLOR_WHITE,string);
GameTextForPlayer(i, "~w~Vlada je platila gorivo.", 5000, 1);
sBizzInfo += FillUp;
ExtortionSBiz(3, FillUp);
Refueling = 0;
TogglePlayerControllable(i, 1);
}
else
{
if(GetPlayerMoney(i) >= FillUp+4)
{
Gas += FillUp;
FillUp = FillUp * sBizzInfo;
format(string,sizeof(string),"* Vozilo napunjeno, za: $%d.",FillUp);
SendClientMessage(i,COLOR_WHITE,string);
SafeGivePlayerMoney(i, - FillUp);
sBizzInfo += FillUp;
ExtortionSBiz(3, FillUp);
Refueling = 0;
TogglePlayerControllable(i, 1);
}
else
{
format(string,sizeof(string),"* Nemate dovoljno novca za gorivo, kosta $%d da biste napunili vozilo.",FillUp);
SendClientMessage(i,COLOR_WHITE,string);
TogglePlayerControllable(i, 1);
}
}
}
}
}
return 1;
} Molim vas ko zna neka mi pomogne ako neko moze molim vas jer mi je ovo preko potrebno!!! Samo ovaj BUG imam na srw!
