Show player name tag..
#7

Quote:
Originally Posted by Mmartin
Посмотреть сообщение
What? Your code makes zero sense, why is the loop there?
pawn Код:
public OnPlayerStreamIn(playerid, forplayerid)
{
     if(gTeam[playerid] == NINJA && gTeam[forplayerid] == NINJA)
     {
          // Both of them are ninjas, code here.
     }
     return 1;
}
It's better to loop for other players other than using the forplayerid parameter, because sometimes, while lagging, it does not register the forplayerid, basically printing that it doesn't even exist, it happened to me once with 480 ping, so yeah.
Reply


Messages In This Thread
Show player name tag.. - by kurt225 - 10.07.2013, 21:00
Re: Show player name tag.. - by Mmartin - 10.07.2013, 21:04
Re: Show player name tag.. - by kurt225 - 10.07.2013, 21:25
Re: Show player name tag.. - by Sandiel - 10.07.2013, 21:44
Re: Show player name tag.. - by kurt225 - 10.07.2013, 21:49
Re: Show player name tag.. - by Mmartin - 10.07.2013, 22:09
Re: Show player name tag.. - by Sandiel - 10.07.2013, 22:14
Re: Show player name tag.. - by kurt225 - 10.07.2013, 22:38
Re: Show player name tag.. - by Mmartin - 11.07.2013, 07:09
Re: Show player name tag.. - by kurt225 - 11.07.2013, 08:15

Forum Jump:


Users browsing this thread: 1 Guest(s)