[POMOC]neki limit

Započeo BloOm3R!
12. Dec. 2010.
1,208
pregleda
9
postova
Bloomer
5
Underboss
12. Dec. 2010.
Ljudi evo problema koji sam skuzio kod rentvozila odnosno unrent-a npr ovako ako je na id 100 do 105 vozila za rent sve radi kako treba a ako je veci id za vozila dakle kako meni treba 267 do 284 onda neradi /unrentcar ima li u gf modu kakav limit za to.Hvala

Nije da skupljam postove al druga tema slicna ko ova pa mi nitko nepomogne...
BrunoHP
4
Enforcer
12. Dec. 2010.
Bas sam sad mislio otvoriti temu, ali vidim da vec postoji. Molim vas pomognite mi, zasto broj vozila visi od 250 nece unrent?
Viky
6
Legenda Foruma
12. Dec. 2010.
😕

A da nam date komande "/rentcar" i "/unrentcar", nekoriste svi GF  😉
Wooden
2
Wheel Man
12. Dec. 2010.
pronadzi ovo i probaj promeniti

new gLastCar;
Bloomer
5
Underboss
13. Dec. 2010.
Quote
A da nam date komande "/rentcar" i "/unrentcar", nekoriste svi GF

ne nije problem u komandama negdje ima neko ogranicenje sigurno

Quote
pronadzi ovo i probaj promeniti

new gLastCar;

Hvala ti al nije stavio sam ja ovo 301 na 600 isti je problem hitno mi je pls netko pomogni.
Viky
6
Legenda Foruma
13. Dec. 2010.
Bloomer wrote on December 13, 2010, 12:46 pm:
Quote
A da nam date komande "/rentcar" i "/unrentcar", nekoriste svi GF

ne nije problem u komandama negdje ima neko ogranicenje sigurno


Da, Da, ogranicenje, mozda ima new maximalaAuta; ali kako cemo mi to znati ako nam nedas komande -.-'
Bloomer
5
Underboss
13. Dec. 2010.
Quote
if(strcmp(cmd, "/rentcar", true) == 0)
{
        if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 267 && GetPlayerVehicleID(playerid) <= 284)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if(GetPlayerVehicleID(playerid) >= 267 && GetPlayerVehicleID(playerid) <= 284)
{
if(SBizzInfo == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
if(PlayerInfo == 0)
{
GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}
if (GetPlayerMoney(playerid) <  SBizzInfo)
{
SendClientMessage(playerid, COLOR_GRAD2, "  You dont have that much cash !");
return 1;
}
GivePlayerMoney(playerid,-SBizzInfo);
SBizzInfo += SBizzInfo;
ExtortionSBiz(0, SBizzInfo);
SBizzInfo--;
}
if(GetPlayerVehicleID(playerid) >= 75 && GetPlayerVehicleID(playerid) <= 77)
{
if(SBizzInfo == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
if(PlayerInfo == 1)
{
GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}
if (GetPlayerMoney(playerid) <  SBizzInfo)
{
SendClientMessage(playerid, COLOR_GRAD2, "  You dont have that much cash !");
return 1;
}
GivePlayerMoney(playerid,-SBizzInfo);
SBizzInfo += SBizzInfo;
ExtortionSBiz(1, SBizzInfo);
SBizzInfo--;
}
if(HireCar != 299)
{
gCarLock[HireCar] = 0;
UnLockCar(HireCar);
}
HireCar = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~We hope you enjoy ~n~the use of this car~n~To lock or unlock your car~n~type ~g~/lock~n~~w~please drive safely",hirefee);
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}

Quote
if(strcmp(cmd, "/unrentcar", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
if(HireCar != 299)
{
gCarLock[HireCar] = 0;
UnLockCar(HireCar);
HireCar = 299;
GameTextForPlayer(playerid, "~w~You no longer rent a car", 5000, 3);
}
}
return 1;
}


al to su komande iz obicnog gf-a al ima negdje neku zamku ako je id od 100 do 105 radi dobro a ako je 267 do 284 kako ja trebam onda neradi...
fixman
5
Underboss
13. Dec. 2010.
Jel se ovo ne treba poklapati svugde ??
if(GetPlayerVehicleID(playerid) >= 267 && GetPlayerVehicleID(playerid) <= 284)


Kod tebe ima na jednom mjestu
 if(GetPlayerVehicleID(playerid) >= 75 && GetPlayerVehicleID(playerid) <= 77)
Bloomer
5
Underboss
13. Dec. 2010.
nemora se jer su inace u gf 2 bizova za rent vozila pa tako da sam za jedan sve napravio i neznam gdje je problem

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha