Posts: 455
Threads: 83
Joined: Nov 2009
Reputation:
0
i would like to show the wanted level in numbers,
where i placed --wanted here-- something like *LVL*
Posts: 455
Threads: 83
Joined: Nov 2009
Reputation:
0
im already using new Wanted[MAX_PlAYERS]; for something else,
could that be an issue, since its giving me errors on compilation
I'm using new Wantedl[Max_PLAYERS]; for calling the wantedlevel could i simply use that?
Posts: 802
Threads: 41
Joined: Oct 2014
Reputation:
0
It should work the Wanted[playerid] get how much wanted level you got because we made a string wi don't add
Posts: 455
Threads: 83
Joined: Nov 2009
Reputation:
0
it didnt work unfortunately.
C:\Users\startklaar\Desktop\LvCnr\gamemodes\lvcnr. pwn(251) : warning 219: local variable "Wanted" shadows a variable at a preceding level
C:\Users\startklaar\Desktop\LvCnr\gamemodes\lvcnr. pwn(254) : error 017: undefined symbol "fontid"
C:\Users\startklaar\Desktop\LvCnr\gamemodes\lvcnr. pwn(255) : error 017: undefined symbol "color"
C:\Users\startklaar\Desktop\LvCnr\gamemodes\lvcnr. pwn(251) : warning 204: symbol is assigned a value that is never used: "Wanted"
C:\Users\startklaar\Desktop\LvCnr\gamemodes\lvcnr. pwn(266) : error 028: invalid subscript (not an array or too many subscripts): "Wanted"
C:\Users\startklaar\Desktop\LvCnr\gamemodes\lvcnr. pwn(266) : warning 215: expression has no effect
C:\Users\startklaar\Desktop\LvCnr\gamemodes\lvcnr. pwn(266) : error 001: expected token: ";", but found "]"
C:\Users\startklaar\Desktop\LvCnr\gamemodes\lvcnr. pwn(266) : error 029: invalid expression, assumed zero
C:\Users\startklaar\Desktop\LvCnr\gamemodes\lvcnr. pwn(266) : fatal error 107: too many error messages on one line
Posts: 455
Threads: 83
Joined: Nov 2009
Reputation:
0
this should work right?
new PlayerText:Text;
forward LEVELCHECK(playerid);
public LEVELCHECK(playerid)
{
new Str[128];
format(Str, sizeof(Str), "Wanted level: %d", GetPlayerWantedLevel(playerid));
PlayerTextDrawSetString(playerid, Text, Str);
return 1;
}
Posts: 455
Threads: 83
Joined: Nov 2009
Reputation:
0
How come TextDrawSetShadow(Text, -1);
is giving me a tag mismatch error?