PDA

View Full Version : Max Wanted Level


Cerealguy
22/09/2013, 01:24 AM
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 :/

arakuta
22/09/2013, 02:49 AM
Using variables instead of SetPlayerWantedLevel function.

You could easily replace with new GET/SET functions

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

Cerealguy
22/09/2013, 03:04 AM
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

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

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

and no showing Star T.T