Updating textdraw
#1

I have an wanted list textdraw and when a player receives a wanted point will appear:
Name - Level 1 but doesen't.I've tried a lot of possibilities but I can't do it, if it's necesary I will post the textdraw.
Reply
#2

Are you using this function to update the textdraw?
Reply
#3

Fixed.
Reply
#4

Maybe you should post the code then so we can have a look at it.
Reply
#5

Posted, I will look today, I'm very tired now, lol.
Reply
#6

Replying because I also need to know this (now I can find it at 'show new replies to your posts' button )
Reply
#7

Bump..

Fixed, but when 2 players haves wanted it doesen't appear:
Name1 - Level 1
Name2 - Level 2, why?

pawn Код:
public WTI(i)
{
    if(gTeam[i] == 2 || IsACop(i))
    {
        new string[256];
        new sendername[MAX_PLAYER_NAME];
        for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
        {
            GetPlayerName(playerid,sendername,sizeof(sendername));
            if(WantedLevel[playerid] >= 1)
            {
                format(string, sizeof(string),"%s - Level %d", sendername, WantedLevel[playerid]);
                TextDrawShowForPlayer(i, WLevel[i]);
                TextDrawSetString(WLevel[i], string);
                TextDrawShowForPlayer(i, Wlist);
                return 1;
            }
        }
    }
    return 1;
}
What's wrong?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)