WantedLevel Problem
#1

if(listitem == 2)
{
new wanti;
wanti = GetPlayerWantedLevel(playerid);
format(string,sizeof(string),"%d wanted level:", wanti);
ShowPlayerDialog(playerid,atm,DIALOG_STYLE_INPUT," Bail", string,"ok","cancel");
}
if(!IsNumeric(inputtext))
{
}
else
{
new nxtprice = GetPlayerWantedLevel(playerid)+1; //
new expamountprice = nxtprice*price1;
GivePlayerMoney(playerid, -expamountprice);
SetPlayerWantedLevel(playerid, -strval(inputtext));
}
}
return 1;
}
When you want to pay only 1 offense it gives me 255 and I want 2 or more to work properly.
Reply
#2

Could you explain the issue clearly?
Reply
#3

I want to pay a wanted level, but gives me 255 wanted level help meee pleaseee
Reply
#4

Try this:
pawn Код:
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) - strval(inputtext));
Reply
#5

thanks man. I price 1 is 10000 and is multiplied by each example 1 wanted level price 10000 2 20000 3 30000 4 4000
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)