23.03.2015, 20:15
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.
{
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.