Započeo Sladjan96
•17. Feb. 2013.• Zaključano[POMOC]Ne mogu podici novac u bizz
396
pregleda
8
postova
Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
87
Postovi:
16
Teme:
Pridružio se:Jan. 2013
17. Feb. 2013.
Detaljan opis problema:Imam problem sa biznisima ne mogu podici novac ili ostaviti kad kucam /fostavi ili /fpodigni izbaci mi /fostavi kolicina ali kad kucam na primer /fostavi 20 izbaci da komanda ne postoji
Skripta koju koristim: Moja
Neke slike/video/kod za lakse dobivanje pomoci (npr.slika server.cfg, server log ili sliÄno):
Skripta koju koristim: Moja
Neke slike/video/kod za lakse dobivanje pomoci (npr.slika server.cfg, server log ili sliÄno):
if(strcmp(cmd, "/fostavi", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo;
if (bouse == 255)
{SendClientMessage(playerid, COLOR_GRAD2, " Ne posjedujete firmu.");return 1;}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
if (bouse >= 100)
{
format(string, sizeof(string), "Imate $%d u vasoj kasi.", SBizzInfo[bouse-100]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else
{
format(string, sizeof(string), "Imate $%d u vasoj kasi.", BizzInfo);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /fostavi ");
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /fostavi ");
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{SendClientMessage(playerid, COLOR_GRAD2, "Nemate toliko.");return 1;}
if (bouse >= 100)
{
if(!PlayerToPoint(5, playerid,SBizzInfo,SBizzInfo,SBizzInfo))
{SendClientMessage(playerid, COLOR_GRAD2, "Predaleko ste od vase firme.");return 1;}
else
{
SafeJBC_GivePlayerMoney(playerid,-cashdeposit);
SBizzInfo[bouse-100] += cashdeposit;
ExtortionSBiz(bouse-100, cashdeposit);
format(string, sizeof(string), "Stavili ste $%d u vasu kasu, Ukupno: $%d ", cashdeposit,SBizzInfo[bouse-100]);
OnPropUpdate();
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
}
}
return 1;
}if(strcmp(cmd, "/fpodigni", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo;
if (bouse == 255)
{SendClientMessage(playerid, COLOR_GRAD2, " Ne posjedujete firmu.");return 1;}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
if (bouse >= 100)
{
format(string, sizeof(string), "Imate $%d u vasoj kasi.", SBizzInfo[bouse-100]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else
{
format(string, sizeof(string), "Imate $%d u vasoj kasi.", BizzInfo);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /fpodigni ");
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /fpodigni ");return 1;}
if (bouse >= 100)
{
if(cashdeposit > SBizzInfo[bouse-100] || cashdeposit < 1)
{SendClientMessage(playerid, COLOR_GRAD2, "Nemate toliko.");return 1;}
}
else
{
if (cashdeposit > BizzInfo || cashdeposit < 1)
{SendClientMessage(playerid, COLOR_GRAD2, "Nemate toliko.");return 1;}
}
if (bouse >= 100)
{
if(!PlayerToPoint(5, playerid,SBizzInfo,SBizzInfo,SBizzInfo))
{SendClientMessage(playerid, COLOR_GRAD2, "Predaleko ste od vase firme!");return 1;}
else
{
SafeJBC_GivePlayerMoney(playerid,cashdeposit);
SBizzInfo[bouse-100] -= cashdeposit;
format(string, sizeof(string), "Uzeli ste $%d iz vase kase, Ukupno: $%d", cashdeposit,SBizzInfo[bouse-100]);
OnPropUpdate();
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
}
}
return 1;
}Forum Don
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
7,407
Postovi:
93
Teme:
Pridružio se:Nov. 2011
17. Feb. 2013.
drifteR wrote on February 17, 2013, 4:04 pm:
Ili ti neradi komanda ili trebaš povećat max za to.. msm da moras to
komanda ti poziva polje arraya koje nije omoguceno
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava