Need Help in payday
#1

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)