Započeo limpo
•2. Apr. 2013.• Zaključano[POMOC] Dizanje para sa firme
220
pregleda
3
postova
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
25
Postovi:
10
Teme:
Pridružio se:Nov. 2012
2. Apr. 2013.
Skripta koju koristim:E.xplosion
Detaljan opis problema:Radi se o bugu u firmama,kada neko kupi firmu i kuca komandu za dizati novac iz kase /fpodigni samo izadje server:unknown command
Dio skripte:
Evo i za ostavljanje para:
Neke slike/video za lakse dobivanje pomoci(neobavezno):///
Detaljan opis problema:Radi se o bugu u firmama,kada neko kupi firmu i kuca komandu za dizati novac iz kase /fpodigni samo izadje server:unknown command
Dio skripte:
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;
}Evo i za ostavljanje para:
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;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):///
Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP Doprinos218
Aktivan Član
177 / 250 XP
Početnik(0)
2,228
Postovi:
120
Teme:
Pridružio se:Nov. 2011
2. Apr. 2013.
Probaj ovako..
if(strcmp(cmd, "/fpodigni", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo;
if (bouse == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, "Ne posedujete 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_GRAD3, string);
}
else
{
format(string, sizeof(string), " Imate $%d u vasoj kasi.", BizzInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
}
SendClientMessage(playerid, COLOR_GRAD2, "{00C0FF}Koriscenje:{FFFFFF} /fpodigni ");
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00C0FF}Koriscenje:{FFFFFF} /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(100, playerid,SBizzInfo[bouse-100],SBizzInfo[bouse-100],SBizzInfo[bouse-100]))
{
SendClientMessage(playerid, COLOR_GRAD2, " Predaleko ste od vase firme");
return 1;
}
else
{
GivePlayerMoney(playerid,cashdeposit);
SBizzInfo[bouse-100] -= cashdeposit;
format(string, sizeof(string), " Uzeli ste $%d iz vase kase, Ukupno: $%d ", cashdeposit,SBizzInfo[bouse-100]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "[%d] %s je uzeo iz firme %d$ , a imao je",playerid, sendername, cashdeposit,SBizzInfo[bouse-100] );
PayLog(string);
if(moneys >= 10000)
{
SendAdminMessage(COLOR_YELLOW,string);
}
return 1;
}
}
else
{
if (!PlayerToPoint(100, playerid,BizzInfo,BizzInfo,BizzInfo))
{
SendClientMessage(playerid, COLOR_GRAD2, " Predaleko ste od vaseg firme");
return 1;
}
else
{
GivePlayerMoney(playerid,cashdeposit);
BizzInfo -= cashdeposit;
format(string, sizeof(string), " Uzeli ste $%d iz vase kase, Ukupno: $%d ", cashdeposit,BizzInfo);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "[%d] %s je uzeo iz firme %d$ , a imao je",playerid, sendername, cashdeposit,BizzInfo);
PayLog(string);
if(moneys >= 40000)
{
SendAdminMessage(COLOR_YELLOW,string);
}
return 1;
}
}
}
return 1;
} if(strcmp(cmd, "/fostavi", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo;
if (bouse == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, "Ne posedujete 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_GRAD3, string);
}
else
{
format(string, sizeof(string), " Imate $%d u vasoj kasi.", BizzInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
}
SendClientMessage(playerid, COLOR_GRAD2, "{00C0FF}Koriscenje:{FFFFFF} /fostavi ");
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00C0FF}Koriscenje:{FFFFFF} /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(100, playerid,SBizzInfo[bouse-100],SBizzInfo[bouse-100],SBizzInfo[bouse-100]))
{
SendClientMessage(playerid, COLOR_GRAD2, "Predaleko ste od vase firme");
return 1;
}
else
{
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]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "[%d] %s je stavio %d$ u svoju kasu",playerid, sendername, cashdeposit);
PayLog(string);
if(moneys >= 10000)
{
SendAdminMessage(COLOR_YELLOW,string);
}
return 1;
}
}
else
{
if (!PlayerToPoint(100, playerid,BizzInfo,BizzInfo,BizzInfo))
{
SendClientMessage(playerid, COLOR_GRAD2, "Predaleko ste od vase firme");
return 1;
}
else
{
GivePlayerMoney(playerid,-cashdeposit);
BizzInfo += cashdeposit;
ExtortionBiz(bouse, cashdeposit);
format(string, sizeof(string), " Stavili ste $%d u vasu kasu, Ukupno: $%d ", cashdeposit,BizzInfo);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
}
}
return 1;
}"All code is guilty until proven innocent."
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
