Need Help in payday - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need Help in payday (
/showthread.php?tid=431627)
Need Help in payday -
IceBilizard - 19.04.2013
Guys i made a businesss system for my gamemode and i set the business paycheck in payday when a player buy the business it autosaved as BPD=0 after payday cames it will save in business file with BPD=which is payout of business but when i do payday from admin command it didn't saving in business always showing BPD = 0 here is my code
pawn Код:
forward PayDay();
public PayDay()
{
new id[32];
new Owner[258];
new String[200];
//new File[200];
Owner = dini_Get(String,"Owner");
for (new i=0;i<MAX_PLAYERS;i++)
{
if (IsPlayerConnected(i))
{
id[i] = Owner[i];
format(String,sizeof(String),"Business/%i.ini",i);
{
dini_IntSet(String,"BPD",dini_Int(String,"Payout"));
}
}
}
}
Can any one fix the problem?