SA-MP Forums Archive
Bit of a problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bit of a problem (/showthread.php?tid=112961)



Bit of a problem - Tigerbeast11 - 11.12.2009

Hi!

I use GametextForPlayer under OnPlayerRequestClass like this

pawn Код:
switch(classid)
{
Case 0:
{
Gametextforplayer("civillians",5000,5);
}
Case 1:
{
Gametextforplayer("army",5000,5);
}
}
But problem is, when player is in class selection and he look at skin number 2, the gametext doesnt change quick enough so it still says army, what to do?


Re: Bit of a problem - dice7 - 11.12.2009

Set the display time to less or use textdraws so you can easily hide them


Re: Bit of a problem - RyDeR` - 11.12.2009

Use a Textdraw and do TextDrawSetString; or put this first above the other GameText's Gametextforplayer(" ",1,5);


Re: Bit of a problem - Tigerbeast11 - 11.12.2009

But that time limit seems very small, are yoiu sure it will work?


Re: Bit of a problem - yom - 11.12.2009

Use another style, style 5 show for few seconds no matter what time you set.


Re: Bit of a problem - Tigerbeast11 - 11.12.2009

Quote:
Originally Posted by Tigerbeast11
But that time limit seems very small, are yoiu sure it will work?



Re: Bit of a problem - dice7 - 11.12.2009

Well test it


Re: Bit of a problem - RyDeR` - 11.12.2009

Here use this function;

Код:
DestroyPlayerGameText(playerid)
{
   GameTextForPlayer(playerid, " ", 10, 5);
   return 1;
}
And add above your gametext: DestroyPlayerGameText(playerid);

lol it's actually the same as above.


Re: Bit of a problem - Tigerbeast11 - 11.12.2009

K, thnx dudes for your help!