[Pomoc]Rent

Započeo Noki, Decembar 31, 2013, 00:55:51 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost 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;
}


Pogresan pdf,postaj ovo u pdf Razgovor o pawno skriptanju...
Lock.