[POMOC] Dizanje para sa firme

Započeo limpo
2. Apr. 2013. Zaključano
214
pregleda
3
postova
limpo
3
Wheel Man
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:
	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):///
Faris_Farkias
6
Godfather
🔥30
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;
}
limpo
3
Wheel Man
2. Apr. 2013.
Radi,Fa®kiaS™ ti si moj idol xD..hvala puno RJEŠENO.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha