Returning to ID 0 for some reason...
#2

I try this

pawn Код:
public PayCheck()
{
    new string[128];
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pCheck] == 1)
            {
                CheckNumber[i] = 1000+random(8999);
                format(string, 128, "Type /signcheck %d to receive your paycheck.", CheckNumber[i]);
                SendClientMessageToAll(COLOR_LIGHTBLUE, string);
                format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck");
                GameTextForPlayer(i, string, 5000, 1);
                return 1;
            }
        }
    }
    return 1;
}
And then it will give everyone a paycheck but say theres 3 people on. it will show that message 3 times, say there is 6 people on it will spam the message 6 times, it doesn't make any sense.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)