Skripta koju koristim:GF
Detaljan opis problema: imam problem sa errorom mucim se boga oca sa njim
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Evo linije new vehicle = GetPlayerVehicleID(i);
new IsABike if(IsABike(vehicle)) return 1
if(Gas >= 1)
POMOC!!!
184
pregleda
5
postova
19. Feb. 2014.
Mogao si dati jos koji red,ali nema veze.Kako mi se cini ovaj dio je u nekoj petlji.
Vidim da si definirao funkciju kao varijablu:
new vehicle = GetPlayerVehicleID(i);
new IsABike if(IsABike(vehicle)) return 1
if(Gas >= 1)Vidim da si definirao funkciju kao varijablu:
new vehicle = GetPlayerVehicleID(i);
if(IsABike(vehicle)) return 1;
if(Gas >= 1)19. Feb. 2014.
Evo ako hoces ceo deo
public CheckGas()
{
new string;
for(new i=0;i {
if(IsPlayerConnected(i))
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(i);
new IsABike if(IsABike(vehicle)) return 1
if(Gas >= 1)
{
if(Gas <= 10) { PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0); }
if(gGas == 1) {
format(string, sizeof(string), "~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Gorivo:~w~ %dL",Gas);
GameTextForPlayer(i,string,15500,3); }
if(IsAPlane(vehicle) || IsABoat(vehicle)) { Gas++; }
Gas--;
}
else
{
NoFuel = 1;
TogglePlayerControllable(i, 0);
GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~Nema benzina~n~Koristi /exit za izlazak iz vozila",1500,3);
}
}
}
}
return 1;
}
public CheckGas()
{
new string;
for(new i=0;i
if(IsPlayerConnected(i))
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(i);
new IsABike if(IsABike(vehicle)) return 1
if(Gas >= 1)
{
if(Gas <= 10) { PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0); }
if(gGas == 1) {
format(string, sizeof(string), "~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Gorivo:~w~ %dL",Gas);
GameTextForPlayer(i,string,15500,3); }
if(IsAPlane(vehicle) || IsABoat(vehicle)) { Gas++; }
Gas--;
}
else
{
NoFuel = 1;
TogglePlayerControllable(i, 0);
GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~Nema benzina~n~Koristi /exit za izlazak iz vozila",1500,3);
}
}
}
}
return 1;
}
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava