Need help with a little command.
#2

Because if this

Код:
if(typed[playerid] = 1)
is under OnPlayerConnect, how will the script know the player is 1? Let's try and fix this ...

You should probably put this in a function and set a timer on it to check every second.

Example:

Код:
forward ChuckNorris();
public CheckNorris()
{
   for(new i = 0;i < MAX_PLAYERS; i++)
   {
      if(typed[i] = 1)
 	  ShowPlayerNameTagForPlayer(playerid, i, 0); // Will hide it
      return 1;
   }

}
return 1;
}
Something like that .. and set a timer on it on OnGameModeInit. All the other code is fine in the command. Nothing need go under OnPlayerConnect apart from maybe
Код:
typed[playerid] =0;
Reply


Messages In This Thread
Need help with a little command. - by Striker_Moe - 28.08.2009, 16:10
Re: Need help with a little command. - by ded - 28.08.2009, 16:22
Re: Need help with a little command. - by Striker_Moe - 28.08.2009, 16:30
Re: Need help with a little command. - by ded - 28.08.2009, 16:42
Re: Need help with a little command. - by Striker_Moe - 28.08.2009, 16:53
Re: Need help with a little command. - by ded - 28.08.2009, 16:57
Re: Need help with a little command. - by Striker_Moe - 28.08.2009, 17:01
Re: Need help with a little command. - by ded - 28.08.2009, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)