Payday Problem.
#1

I Have problem.When is Payday time.My money become 0.I dont know why..

Example in 10:50 i have 1500 $ .. in 11:00 on payday my money automatic become 0 .. ?? Why ?

pawn Код:
{
        format(string, sizeof(string), "SERVER: Time now is %d:00 ffff",tmphour);
        SendClientMessageToAll(COLOR_WHITE,string);
        ghour = tmphour;
        Payday();
        if (realtime)
        {
            SetWorldTime(tmphour);
        }
    }
}
pawn Код:
public Payday()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new nxtlevel;
            nxtlevel = PlayerInfo[i][pLevel]+1;
            new string[128];
            format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck");
            GameTextForPlayer(i, string, 5000, 1);
            new payday = nxtlevel*1000;
            GivePlayerCash(i,payday);
            PlayerInfo[i][pExp]++;
        }
    }
    return 1;
}
Reply
#2

Show us your GivePlayerCash methode.
Reply
#3

This ?

pawn Код:
GivePlayerCash(playerid, PlayerInfo[playerid][pCash]);
Reply
#4

Maybe problem is in my Anticheat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)