GameTextForPlayer bug?
#1

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?
Reply
#2

As stated on the wiki:
Quote:

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

Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)