CreateTextDraw GLOBAL Problem
#2

The problem is here
pawn Код:
public OnGameModeInit() AND on PlayerConnect
{    
    for(new i=0; i <MAX_PLAYERS; i++)
    {
        GMXDRAW[i] = TextDrawCreate(1.000000, 437.000000, " ");
        TextDrawBackgroundColor(GMXDRAW[i], 255);
        TextDrawFont(GMXDRAW[i], 1);
        TextDrawLetterSize(GMXDRAW[i], 0.370000, 1.000000);
    TextDrawColor(GMXDRAW[i], 65535);
        TextDrawSetOutline(GMXDRAW[i], 0);
        TextDrawSetProportional(GMXDRAW[i], 1);
        TextDrawSetShadow(GMXDRAW[i], 1);
        TextDrawUseBox(GMXDRAW[i], 1);
        TextDrawBoxColor(GMXDRAW[i], 255);
        TextDrawTextSize(GMXDRAW[i], 639.000000, 0.000000);
    }
    return 1;
}
You can't do that just move it to OnPlayerConnect and change the loop (i) to playerid.
Happened to me btw.
Reply


Messages In This Thread
CreateTextDraw GLOBAL Problem - by Buzzbomb - 21.12.2012, 07:35
Re: CreateTextDraw GLOBAL Problem - by DaRk_RaiN - 21.12.2012, 07:52
Re: CreateTextDraw GLOBAL Problem - by Buzzbomb - 21.12.2012, 08:10
Re: CreateTextDraw GLOBAL Problem - by Buzzbomb - 21.12.2012, 09:10
Re: CreateTextDraw GLOBAL Problem - by Buzzbomb - 24.12.2012, 00:44
Re: CreateTextDraw GLOBAL Problem - by Buzzbomb - 26.12.2012, 03:29
Re: CreateTextDraw GLOBAL Problem - by Buzzbomb - 27.12.2012, 02:24
Re: CreateTextDraw GLOBAL Problem - by Lordzy - 27.12.2012, 03:35
Re: CreateTextDraw GLOBAL Problem - by Intoxicated - 27.12.2012, 12:48

Forum Jump:


Users browsing this thread: 2 Guest(s)