Textdraw help
#1

Trying to make a textdraw for locations but it won't update when i enter a new area maybe you can see whats wrong here.


pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
    {
        Mapdraw[i] = TextDrawCreate(34.000000, 326.000000, "");
        TextDrawBackgroundColor(Mapdraw[i], 255);
        TextDrawFont(Mapdraw[i], 2);
        TextDrawLetterSize(Mapdraw[i], 0.190000, 1.199999);
        TextDrawColor(Mapdraw[i], -1);
        TextDrawSetOutline(Mapdraw[i], 0);
        TextDrawSetProportional(Mapdraw[i], 1);
        TextDrawSetShadow(Mapdraw[i], 1);
    }
pawn Код:
stock LoadAreaPl(playerid, type, num)
{
    new string[128];
    switch(type)
    {
        case 0: format(string, 128, "%s", GetPlayerArea(playerid));
        case 1: format(string, 128, "%s", HouseInfo[num][hAdress]);
        case 2: format(string, 128, "%s", DoorInfo[num][dName]);
        case 3: format(string, 128, "%s", BusinessInfo[num][bName]);
        case 5: string="Interior";
    }
    if(PlayerInfo[playerid][pHud] == 1) TextDrawSetString(Mapdraw[playerid], string), TextDrawShowForPlayer(playerid, Mapdraw[playerid]);
    return true;
}
Reply
#2

Use Per-Player TextDraws, DuDe!!!
Reply
#3

Quote:
Originally Posted by Paulice
Посмотреть сообщение
User Per-Player TextDraws, DuDe!!!
Would that even help?
Reply
#4

Quote:
Originally Posted by N0FeaR
Посмотреть сообщение
Would that even help?
What Does Using Global TextDraws Do For You? Nothing! Global TextDraws Are Not Made For This! There Is A Limit! 1 Per-Player TextDraw = 1,000 Global TextDraws In Your Case!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)