[Pomoc] rent cmd

Započeo [GU:RP] Ivica, Jun 11, 2013, 22:28:28 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:mojmod
Detaljan opis problema:pa ta je komanda prije radila super dakle nije nista pisalo i idem rentat auto msm rentam ga, ali odma ispod pise kao da komanda ne postoji.
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Jun 11, 2013, 22:28:45 POSLE PODNE od [GU:RP] Ivica

daj komandu,i jel to samo za tu komandu ili í za još neke?


[FS]Rent
[FS] Vremenska prognoza
[TuT] PayDay
[TuT]PayDay sistem[UPDATED]
Moja Biografija

Respect:Mr.Gagi,FlasH,Streetboy,David (Sabljak) A.k.A SABO(T)
ÄŒovjek nije stvoren za poraze, moze biti unisten, ali ne i pobjeÄ'en!

da samo ta komanda

CMD:rentaj(playerid,params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, GRAD2, "{F81414}(Odbijeno!) {C3C3C3}Niste u vozilu!");
    new x = -1,v = GetPlayerVehicleID(playerid);
for(new i; i < sizeof(Rent); i++)
{
    if(v == Rent[i]) x = i;
}
if(x == -1) return SCM(playerid, GRAD2, "*Ne mozete iznajmiti ovo vozilo!");
    new b = PlayerInfo[playerid][pPsiskey];
    if(SBizzInfo[2][sbProducts] == 0)
{
SCM(playerid, SIVA,"*Nazalost nemamo vise robe!");
GameTextForPlayer(playerid, "~r~Rasprodano", 5000, 1);
return 1;
}
if(SBizzInfo[3][sbProducts] == 0)
{
SCM(playerid, SIVA,"*Nazalost nemamo vise robe!");
GameTextForPlayer(playerid, "~r~Rasprodano", 5000, 1);
return 1;
}
if(SBizzInfo[4][sbProducts] == 0)
{
SCM(playerid, SIVA,"*Nazalost nemamo vise robe!");
GameTextForPlayer(playerid, "~r~Rasprodano", 5000, 1);
return 1;
}
if(SBizzInfo[7][sbProducts] == 0)
{
SCM(playerid, SIVA,"*Nazalost nemamo vise robe!");
GameTextForPlayer(playerid, "~r~Rasprodano", 5000, 1);
return 1;
}
if(SBizzInfo[10][sbProducts] == 0)
{
SCM(playerid, SIVA,"*Nazalost nemamo vise robe!");
GameTextForPlayer(playerid, "~r~Rasprodano", 5000, 1);
return 1;
}
if(GetPlayerMoney(playerid) < 50)
{
SendClientMessage(playerid, COLOR_GRAD2, "Nemas dovoljno Novca!");
return 1;
}
if(Rentano[playerid] != 299)
{
SendClientMessage(playerid, SIVA, "*Moras prvo da vratis iznajmljeno vozilo!");
return 1;
}
for(new i=0; i< MAX_PLAYERS; i++)
{
if(Rentano[i] == GetPlayerVehicleID(playerid))
{
SendClientMessage(playerid, SIVA, "*Ovo vozilo je vec iznajmljeno!");
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
return 1;
}
}
GivePlayerMoney(playerid,-50);
TextDrawHideForPlayer(playerid, RentDraw0[playerid]);
TextDrawDestroy(RentDraw0[playerid]);
TextDrawHideForPlayer(playerid, RentDraw1[playerid]);
TextDrawDestroy(RentDraw1[playerid]);
TextDrawHideForPlayer(playerid, RentDraw2[playerid]);
TextDrawDestroy(RentDraw2[playerid]);
Rentano[playerid] = GetPlayerVehicleID(playerid);
SendClientMessage(playerid,CRVENA,"{F3FF02}(rent) {FFFFFF}Uspjesno ste iznajmili vozilo,da ga odjavite kucajte {F3FF02}/unrentaj.");
TogglePlayerControllable(playerid, 1);
SBizzInfo[10][sbTill] += 50/2;
SBizzInfo[10][sbReket] += 50/3;
SBizzInfo[10][sbProducts]--;
//---------------------------//
SBizzInfo[7][sbTill] += 50/2;
SBizzInfo[7][sbReket] += 50/3;
SBizzInfo[7][sbProducts]--;
//---------------------------//
SBizzInfo[4][sbTill] += 50/2;
SBizzInfo[4][sbReket] += 50/3;
SBizzInfo[4][sbProducts]--;
//---------------------------//
SBizzInfo[3][sbTill] += 50/2;
SBizzInfo[3][sbReket] += 50/3;
SBizzInfo[3][sbProducts]--;
SpremiSFirmu(b);
//---------------------------//
SBizzInfo[2][sbTill] += 50/2;
SBizzInfo[2][sbReket] += 50/3;
SBizzInfo[2][sbProducts]--;
SpremiSFirmu(b);
return 1;
}

Koju poruku ízbaci?


[FS]Rent
[FS] Vremenska prognoza
[TuT] PayDay
[TuT]PayDay sistem[UPDATED]
Moja Biografija

Respect:Mr.Gagi,FlasH,Streetboy,David (Sabljak) A.k.A SABO(T)
ÄŒovjek nije stvoren za poraze, moze biti unisten, ali ne i pobjeÄ'en!

Citat: [GU:RP] Ivica poslato Jun 11, 2013, 22:34:11 POSLE PODNE
da samo ta komanda

CMD:rentaj(playerid,params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, GRAD2, "{F81414}(Odbijeno!) {C3C3C3}Niste u vozilu!");
    new x = -1,v = GetPlayerVehicleID(playerid);
for(new i; i < sizeof(Rent); i++)
{
    if(v == Rent[i]) x = i;
}
if(x == -1) return SCM(playerid, GRAD2, "*Ne mozete iznajmiti ovo vozilo!");
    new b = PlayerInfo[playerid][pPsiskey];
    if(SBizzInfo[2][sbProducts] == 0)
{
SCM(playerid, SIVA,"*Nazalost nemamo vise robe!");
GameTextForPlayer(playerid, "~r~Rasprodano", 5000, 1);
return 1;
}
if(SBizzInfo[3][sbProducts] == 0)
{
SCM(playerid, SIVA,"*Nazalost nemamo vise robe!");
GameTextForPlayer(playerid, "~r~Rasprodano", 5000, 1);
return 1;
}
if(SBizzInfo[4][sbProducts] == 0)
{
SCM(playerid, SIVA,"*Nazalost nemamo vise robe!");
GameTextForPlayer(playerid, "~r~Rasprodano", 5000, 1);
return 1;
}
if(SBizzInfo[7][sbProducts] == 0)
{
SCM(playerid, SIVA,"*Nazalost nemamo vise robe!");
GameTextForPlayer(playerid, "~r~Rasprodano", 5000, 1);
return 1;
}
if(SBizzInfo[10][sbProducts] == 0)
{
SCM(playerid, SIVA,"*Nazalost nemamo vise robe!");
GameTextForPlayer(playerid, "~r~Rasprodano", 5000, 1);
return 1;
}
if(GetPlayerMoney(playerid) < 50)
{
SendClientMessage(playerid, COLOR_GRAD2, "Nemas dovoljno Novca!");
return 1;
}
if(Rentano[playerid] != 299)
{
SendClientMessage(playerid, SIVA, "*Moras prvo da vratis iznajmljeno vozilo!");
return 1;
}
for(new i=0; i< MAX_PLAYERS; i++)
{
if(Rentano[i] == GetPlayerVehicleID(playerid))
{
SendClientMessage(playerid, SIVA, "*Ovo vozilo je vec iznajmljeno!");
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
return 1;
}
}
GivePlayerMoney(playerid,-50);
TextDrawHideForPlayer(playerid, RentDraw0[playerid]);
TextDrawDestroy(RentDraw0[playerid]);
TextDrawHideForPlayer(playerid, RentDraw1[playerid]);
TextDrawDestroy(RentDraw1[playerid]);
TextDrawHideForPlayer(playerid, RentDraw2[playerid]);
TextDrawDestroy(RentDraw2[playerid]);
Rentano[playerid] = GetPlayerVehicleID(playerid);
SendClientMessage(playerid,CRVENA,"{F3FF02}(rent) {FFFFFF}Uspjesno ste iznajmili vozilo,da ga odjavite kucajte {F3FF02}/unrentaj.");
TogglePlayerControllable(playerid, 1);
SBizzInfo[10][sbTill] += 50/2;
SBizzInfo[10][sbReket] += 50/3;
SBizzInfo[10][sbProducts]--;
//---------------------------//
SBizzInfo[7][sbTill] += 50/2;
SBizzInfo[7][sbReket] += 50/3;
SBizzInfo[7][sbProducts]--;
//---------------------------//
SBizzInfo[4][sbTill] += 50/2;
SBizzInfo[4][sbReket] += 50/3;
SBizzInfo[4][sbProducts]--;
//---------------------------//
SBizzInfo[3][sbTill] += 50/2;
SBizzInfo[3][sbReket] += 50/3;
SBizzInfo[3][sbProducts]--;
SpremiSFirmu(b);
//---------------------------//
SBizzInfo[2][sbTill] += 50/2;
SBizzInfo[2][sbReket] += 50/3;
SBizzInfo[2][sbProducts]--;
SpremiSFirmu(b);
return 1;
}

To ubacujes na kraj skripte

pa komanda radi sve super samo odma ispod nje pise msm kad rentam vozilo pise da sam rentao i odma ispod pise kao da komanda ne postoji

edit: otkrio sam u cemu je stvar kada sam pobrisao spremisfirmu tada je sve radilo, ali meni treba to u cmd da sprema novac odma na firmu
Poslednja Izmena: Jun 12, 2013, 00:31:19 PRE PODNE od [GU:RP] Ivica