Game Text won't remove - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Game Text won't remove (
/showthread.php?tid=407331)
Game Text won't remove -
FL3GM4 - 13.01.2013
why this gametext won't remove after 2 seconds ..
all other gametexts work good
Код:
if(pickupid == gsoruzje)
{
GameTextForPlayer(playerid, "~w~/kupi", 2000, 2);
}
Re: Game Text won't remove -
Infinity90 - 13.01.2013
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;
}
Re: Game Text won't remove -
Vince - 13.01.2013
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.
|
Re: Game Text won't remove -
FL3GM4 - 13.01.2013
Quote:
Originally Posted by Vince
|
Oh, i didnt know that... thanks man