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


Messages In This Thread
GameTextForPlayer bug? - by Steeve_Smith - 19.02.2012, 23:09
Re: GameTextForPlayer bug? - by Vince - 19.02.2012, 23:22
Re : GameTextForPlayer bug? - by Steeve_Smith - 19.02.2012, 23:25

Forum Jump:


Users browsing this thread: 1 Guest(s)