Loops through players
#3

Quote:
Originally Posted by Whizion
Посмотреть сообщение
It's because your not checking if the player is online, you can't work with offline players.

Try this:

pawn Код:
forward GAPoint( playerid );
public GAPoint( playerid )
{
    new string[ 128 ];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
          format( string, sizeof( string ), "** %s Won! **", GetName( i ) );
          SendClientMessageToAll(YELLOW, string);
        }
    }
}
Also i think this is pointless, because players will 'win' purely by being just online (and it will spam the chat).
Yea well that is just a small code i wrote i wouldn't paste the whole code its long and it would be pointless. But thanks for the reply i will try with that connected .
Reply


Messages In This Thread
Loops through players - by The Woody - 04.04.2011, 11:10
Re: Loops through players - by Whizion - 04.04.2011, 11:17
Re: Loops through players - by The Woody - 04.04.2011, 11:20
Re: Loops through players - by The Woody - 04.04.2011, 12:05
Re: Loops through players - by Sascha - 04.04.2011, 12:31
Re: Loops through players - by The Woody - 04.04.2011, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)