01.04.2015, 15:38
So you're using it when a player connects?
Then you should use SetTimerEx.
Basically instead of the SetTimer:
"i" - Which format to use, the players ID is a number, so we use an integer (i or d)
playerid - What integer(number) should we pass on? The playerid.
And then the public and forwards parameters should contain "playerid", so you don't need a loop, just hide it for playerid:
Then you should use SetTimerEx.
Basically instead of the SetTimer:
pawn Код:
SetTimer("MyPublic", 4000, false, "i", playerid);
playerid - What integer(number) should we pass on? The playerid.
And then the public and forwards parameters should contain "playerid", so you don't need a loop, just hide it for playerid:
pawn Код:
forward MyPublic(playerid); // When creating a public function, you always need to forward it
public MyPublic(playerid) // The public the timer will call, any code under the public will be executed when the timer ends
{
TextDrawHideForPlayer(playerid, Textdraw0[playerid]); // Hide the textdraw for playerid
}