Game Text won't remove
#1

why this gametext won't remove after 2 seconds ..

all other gametexts work good

Код:
	if(pickupid == gsoruzje)
	{
		GameTextForPlayer(playerid, "~w~/kupi", 2000, 2);
	}
Reply
#2

Unsure, try setting a timer.
pawn Код:
if(pickupid == gsoruzje)
{
GameTextForPlayer(playerid, "~w~/kupi", 2000, 2);
SetTimerEx("ClearText",2000,0,"i",playerid);
}

//Bottem of your script
forward ClearText(playerid);
public ClearText(playerid)
{
GameTextForPlayer(playerid, "", 1000, 2);
return 1;
}
Reply
#3

Rule N° 1: If unsure about a function, use the wiki. https://sampwiki.blast.hk/wiki/GameTextStyle#Text_Styles

Quote:

Style 2
Does not disappear until the player respawns.

Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
Rule N° 1: If unsure about a function, use the wiki. https://sampwiki.blast.hk/wiki/GameTextStyle#Text_Styles
Oh, i didnt know that... thanks man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)