Max Wanted Level - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Max Wanted Level (
/showthread.php?tid=465358)
Max Wanted Level -
Cerealguy - 22.09.2013
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 :/
Re: Max Wanted Level -
arakuta - 22.09.2013
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
Respuesta: Max Wanted Level -
Cerealguy - 22.09.2013
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
(416

error 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