30.08.2010, 18:32
First the Textdraw isn't shown when you get your Driving License:
Change this line:
To this:
Then you need to get the ID in your public function so like this:
Now we need to send the player ID in the timer like this:
Hope it works!
Change this line:
pawn Код:
TextDrawHideForPlayer(playerid, nowhavelic);
pawn Код:
TextDrawShowForPlayer(playerid, nowhavelic);
pawn Код:
forward nowhavelic2(playerid);
public nowhavelic2(playerid)
{
if(IsPlayerConnected(playerid))
{
TextDrawHideForPlayer(playerid, nowhavelic);
}
return 1;
}
pawn Код:
SetTimerEx("nowhavelic2",3000,false, "i", playerid);