[HELP] This is weird?
#1

I'm using gPlayerLogged from an RP script (not the GF one). Now I made a timer that activates TextDraws once a player is not logged in, then it deactivates the TextDraws when the player logs on. Here's the code.

pawn Код:
public LoginTextDraw()
{
  for(new i = 0; i <= MAX_PLAYERS; i++)
  {
    if(gPlayerLogged[i] == 0)
    {
            TextDrawShowForPlayer(i, Textdraw0);
            TextDrawShowForPlayer(i, Textdraw1);
            TextDrawShowForPlayer(i, Textdraw2);
            TextDrawShowForPlayer(i, Textdraw3);
        }
        if(gPlayerLogged[i] == 1)
        {
            TextDrawHideForPlayer(i, Textdraw0);
            TextDrawHideForPlayer(i, Textdraw1);
            TextDrawHideForPlayer(i, Textdraw2);
            TextDrawHideForPlayer(i, Textdraw3);
        }
    }
    return 1;
}
Now, the TextDraw activates all normally on log on but when I login the server it does not hide the TextDraws. I been working on trying to fix this for half an hour and I can't find NOTHING that helps. If you know what to do please reply, thanks.
Reply


Messages In This Thread
[HELP] This is weird? - by AcId n RaPiD - 20.12.2009, 22:41
Re: [HELP] This is weird? - by Im_BanK - 20.12.2009, 23:05
Re: [HELP] This is weird? - by Marcel - 20.12.2009, 23:15
Re: [HELP] This is weird? - by AcId n RaPiD - 20.12.2009, 23:28

Forum Jump:


Users browsing this thread: 4 Guest(s)