Textdraw
#1

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

Are you using player textdraws?
Reply
#3

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 !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)