Wanted level textdraw
#1

Hello,i've this textdraw to show and update the current wanted level of the player:

pawn Код:
new Text:WantedLvlTxd;
pawn Код:
forward InfoUpdate();
public InfoUpdate()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    new plwl = GetPlayerWantedLevel(i);
    plwl = GetPlayerWantedLevel(i);
    TextDrawSetString(WantedLvlTxd[i], plwl);
    }
    return 1;
}
pawn Код:
SetTimer("InfoUpdate", 500, 1);
But i get this errors:

Код:
2036 : error 028: invalid subscript (not an array or too many subscripts): "WantedLvlTxd"
2036 : warning 215: expression has no effect
2036 : error 001: expected token: ";", but found "]"
2036 : error 029: invalid expression, assumed zero
2036 : fatal error 107: too many error messages on one line
Line 2036:

pawn Код:
TextDrawSetString(WantedLvlTxd[i], plwl);
Thanks.
Reply
#2

pawn Код:
new Text:WantedLvlTxd[MAX_PLAYERS];
your trying to access an array
but you did not define it as an array,

that will help
Reply
#3

I fixed in another way,thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)