Help me fix this please.
#5

You should be using "foreach", by "******"...

pawn Код:
public PayDay()
{
    new string[128];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            Points[i][Announced] = 0;
            if (Points[i][Vulnerable] > 0)
            {
                Points[i][Vulnerable]--;
                UpdatePoints();
            }
        }
    }
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            PlayerInfo[i][pCheck] = 1;
            CheckNumber[i] = 1000+random(8999);
            format(string, 128, "Type /signcheck %d to receive your paycheck.", CheckNumber[i]);
            SendClientMessage(i, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck");
            GameTextForPlayer(i, string, 5000, 1);
        }
    }
    return 1;
}
Give that a shot.
Reply


Messages In This Thread
Help me fix this please. - by Lars_Frederiksen - 29.11.2010, 23:50
Re: Help me fix this please. - by Scenario - 30.11.2010, 01:03
Re: Help me fix this please. - by Steven82 - 30.11.2010, 01:15
Re: Help me fix this please. - by Lars_Frederiksen - 30.11.2010, 14:52
Re: Help me fix this please. - by Scenario - 30.11.2010, 14:58
Re: Help me fix this please. - by Lars_Frederiksen - 30.11.2010, 15:23
Re: Help me fix this please. - by Lars_Frederiksen - 30.11.2010, 15:29
Re: Help me fix this please. - by Scenario - 30.11.2010, 15:42
Re: Help me fix this please. - by Lars_Frederiksen - 30.11.2010, 15:54
Re: Help me fix this please. - by Scenario - 30.11.2010, 16:07

Forum Jump:


Users browsing this thread: 1 Guest(s)