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



Textdraw - NeroX98 - 12.02.2013

Hi guys...

I have a lot of textdraws but i have problem with them... They are showing only for few people (My server is 50 slots and only 10-20 players will see the textdraws). Also my MAX_PLAYERS define is 50


Re: Textdraw - 2KY - 12.02.2013

Are you using player textdraws?


Re: Textdraw - NeroX98 - 12.02.2013

here is just one textdraw example:

pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS 100


new Text:Levelce[MAX_PLAYERS];

//Under OnPlayerConnect
Levelce[playerid] = TextDrawCreate(546.000000, 106.000000, "2");
TextDrawBackgroundColor(Levelce[playerid], 255);
TextDrawFont(Levelce[playerid], 1);
TextDrawLetterSize(Levelce[playerid], 0.500000, 1.000000);
TextDrawColor(Levelce[playerid], -203249153);
TextDrawSetOutline(Levelce[playerid], 0);
TextDrawSetProportional(Levelce[playerid], 1);
TextDrawSetShadow(Levelce[playerid], 1);

//ExpUpdate is a timer (It is under OnPlayerConnect ( SetTimerEx("ExpUpdate", 100, true, "d", playerid); )
public ExpUpdate(playerid)
{
    if(CheckPausing(playerid) == 1 || PlayerInfo[playerid][pTut] == 0)
    {
        return 1;
    }
    else if(CheckPausing(playerid) == 0 && PlayerInfo[playerid][pTut] == 1)
    {
        pokazuvalevel[playerid] += 1;
        if(pokazuvalevel[playerid] == 50)
        {
            TextDrawShowForPlayer(playerid, Levelce[playerid]);
        }
    }
}
Is there any problem ? Please help !