Max Wanted Level
#1

Hello friends, I hope I can help with the following problem.

I made a showing TextDraw wanted level as you, and all excellent the problem is that the maximum level is 255, but I want it to be 2500 or any idea how I could make the maximum wanted level is 2500


Thanks for your attention ..

Sorry is ****** translate :/
Reply
#2

Using variables instead of SetPlayerWantedLevel function.

You could easily replace with new GET/SET functions

pawn Код:
new WantedLevel[MAX_PLAYERS]; // GLOBAL

stock SetPlayerWantedLevelEx(playerid,level)
{
    WantedLevel[playerid] = level;
    if(WantedLevel[playerid] > 6)
        SetPlayerWantedLevel(playerid,6);
    else if(WantedLevel[playerid] < 0)
        SetPlayerWantedLevel(playerid,0);
    SetPlayerWantedLevel(playerid,PI[playerid][procura]);
}

stock GetPlayerWantedLevelEx(playeird)
{
    return WantedLevel[playerid];
}
Now the max level is 2,147,483,647
Reply
#3

you are great friend <3, hey friend, the maximum wanted level is PI if I change to 2500 would work also?

friend error i put, SetPlayerWantedLevelEx(playerid, 0); in onplayerdeath and ERROR

(416error 029: invalid expression, assumed zero
(416 : error 029: invalid expression, assumed zero
(416 : warning 215: expression has no effect
(416 : error 001: expected token: ";", but found "]"
(416 : fatal error 107: too many error messages on one line

ln 4168 is : SetPlayerWantedLevel(playerid,PI[playerid][procura]);

and no showing Star T.T
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)