Spamming Message
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
This ought to work;

pawn Код:
forward Check();
public Check()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;

        /*
            Very important to decrement before comparing.
            If the package loading var is already 0,
            the function will set it to -1 and skip the following block.
            It will then execute the next block to set the variable back to 0.

            If the package loading var is not 0, the first statement will
            decrement the var, but it will not send the message until the
            var reaches 0.
        */

       
        if(--PlayerInfo[i][pPackageLoading] == 0)
        {
            SendClientMessage(i, COLOR_LIGHTBLUE, "You are now able to load more products.");
            continue;
        }
        if(PlayerInfo[i][pPackageLoading] < 0)
        {
            PlayerInfo[i][pPackageLoading] = 0;
        }
    }
    return 1;
}
Still the same Vince, just spams the message down the page. I can't think of a way possible.. unless I use 'stock'?
Reply


Messages In This Thread
Spamming Message - by WinterAce - 13.07.2012, 11:35
Re: Spamming Message - by clarencecuzz - 13.07.2012, 11:37
Re: Spamming Message - by WinterAce - 13.07.2012, 17:35
Re: Spamming Message - by Vince - 13.07.2012, 17:51
Re: Spamming Message - by WinterAce - 13.07.2012, 18:16
Re: Spamming Message - by Elysian` - 13.07.2012, 18:19
Re: Spamming Message - by Roko_foko - 13.07.2012, 18:28
Re: Spamming Message - by WinterAce - 13.07.2012, 18:45
Re: Spamming Message - by Vince - 13.07.2012, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)