[Pomoc]Rent

Započeo Noki, Januar 04, 2014, 01:57:55 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Detaljan opis problema: Kad kuca /rentmoto ne renta se motor
Skripta koju koristim: Yugoslavia Gaming
Neke slike/video/kod za lakse dobivanje pomoci (npr.slika server.cfg, server log ili slično): Evo KOD
      if(strcmp(cmd, "/rentmoto", true) == 0)
{
        if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 186 && GetPlayerVehicleID(playerid) <= 210)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
/*if(PlayerInfo[playerid][pPbiskey] == 0)
{
GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}*/
if (GetPlayerMoney(playerid) <  SBizzInfo[0][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GRAD2, "Nemate dovoljno novca !");
return 1;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SendClientMessage(playerid, COLOR_GREY, "Morate prvo da vratite iznajmljeni auto/motor/camac !");
return 1;
}
foreach (Player, i)
{
    if(HireCar[i] == GetPlayerVehicleID(playerid))
    {
        SendClientMessage(playerid, COLOR_GREY, "Neko je vec iznajmio ovaj motor !");
        return 1;
    }
}
GivePlayerCash(playerid,-SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];
ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbProducts]--;
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Iznajmili ste vozilo sada ga mozete voziti.",hirefee);
SendClientMessage(playerid, BELA, string);
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}


Kako mislis nece da se rent jel ti ispise sta na ekranu???

Citat: Boca A.k.A Bocilinjo poslato Januar 04, 2014, 02:04:11 PRE PODNE
Kako mislis nece da se rent jel ti ispise sta na ekranu???
Pise ako zelis rent kucaj /rentmoto ja kucam al ne renta


Probaj if(strcmp(cmd, "/rentmoto", true) == 0)
{
        if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 186 && GetPlayerVehicleID(playerid) <= 210)
{
if(SBizzInfo[0][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 4000, 4);
return 1;
}
if (GetPlayerMoney(playerid) <  150)
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nemate dovoljno novca !");
return 1;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SendClientMessage(playerid, COLOR_GREY, "Morate prvo da vratite iznajmljeni auto/motor/camac !");
return 1;
}
foreach (Player, i)
{
    if(HireCar[i] == GetPlayerVehicleID(playerid))
    {
        SendClientMessage(playerid, COLOR_GREY, "    Neko je vec iznajmio ovaj motor !");
        return 1;
    }
}
SafeJBC_GivePlayerMoney(playerid,-100);
SBizzInfo[0][sbTill] += 100;
ExtortionSBiz(0, 100);
SBizzInfo[0][sbProducts]--;
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, BELA, "Iznajmili ste vozilo sada ga mozete voziti");
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
}
}
return 1;
}