Player Loop Question ?
#1

Hello guys i have a script here and inside i am checking for if a player is in area or not if he is in then send him a message, my problem is the message keeps spamming my screen and crashes the game so how can i make it so when i enter the area the message appears once only once not more here's the code :
pawn Code:
public OnPlayerUpdate(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(/* My Area Check */)
        {
            SendClientMessage(playerid, -1, "you are in");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Player Loop Question ? - by Mr.Fames - 06.07.2012, 11:00
Re: Player Loop Question ? - by MP2 - 06.07.2012, 11:03
Re: Player Loop Question ? - by iggy1 - 06.07.2012, 11:04
Re: Player Loop Question ? - by Mr.Fames - 06.07.2012, 11:07
Re: Player Loop Question ? - by iggy1 - 06.07.2012, 11:08
Re: Player Loop Question ? - by Mr.Fames - 06.07.2012, 11:10
Re: Player Loop Question ? - by iggy1 - 06.07.2012, 11:16
Re: Player Loop Question ? - by Roko_foko - 06.07.2012, 11:20
Re: Player Loop Question ? - by Mr.Fames - 06.07.2012, 11:23
Re: Player Loop Question ? - by Mr.Fames - 06.07.2012, 11:25

Forum Jump:


Users browsing this thread: 1 Guest(s)