23.05.2012, 14:07
Hello,i've this textdraw to show and update the current wanted level of the player:
But i get this errors:
Line 2036:
Thanks.
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);
Код:
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
pawn Код:
TextDrawSetString(WantedLvlTxd[i], plwl);