SA-MP Forums Archive
GameTextForPlayer bug? - 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: GameTextForPlayer bug? (/showthread.php?tid=319698)



GameTextForPlayer bug? - Steeve_Smith - 19.02.2012

Hi guys,

I found something weird with my GameTextForPlayer, because whatever I put in 'time', the GameText will appear for 6 seconds. I even set it to 100, but it still lasted 6 seconds.

Here is the code of the callback (which should normally work, unless I did a mistake):

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 2080.4087,1919.1265,12.2571);
    SetPlayerFacingAngle(playerid, 264.0238);
    SetPlayerCameraPos(playerid, 2097.9773,1916.9988,14.8775);
    SetPlayerCameraLookAt(playerid, 2080.4087,1919.1265,12.2571);
   
    switch(classid)
    {
        case 0:
        {
            GameTextForPlayer(playerid, "~r~GANG", 100, 0);
            gTeam[playerid] = TEAM_GANG;   
        }
        case 1:
        {
            GameTextForPlayer(playerid, "~b~POLICE", 100, 0);
            gTeam[playerid] = TEAM_POLICE;
        }
    }

    return 1;
}
Any idea?


Re: GameTextForPlayer bug? - Vince - 19.02.2012

As stated on the wiki:
Quote:

Takes time to disappear. And it doesn't like TextDraws and Menus.




Re : GameTextForPlayer bug? - Steeve_Smith - 19.02.2012

Damn :/ Is there any way to fix it?
Cause when I switch team, I can still see the GameText of the other team >.>