SA-MP Forums Archive
Updating 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Updating textdraw (/showthread.php?tid=130670)



Updating textdraw - Razvann - 27.02.2010

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.


Re: Updating textdraw - Correlli - 27.02.2010

Are you using this function to update the textdraw?


Re: Updating textdraw - Razvann - 27.02.2010

Fixed.


Re: Updating textdraw - Correlli - 27.02.2010

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


Re: Updating textdraw - Razvann - 27.02.2010

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


Re: Updating textdraw - VonLeeuwen - 27.02.2010

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


Re: Updating textdraw - Razvann - 28.02.2010

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?