Same amount!
#1

Hi i've creating a bail command but when someone be jailed the amount jailed will be differnt of orginal bail amount it's changed automacily why..

PHP Code:
    if(BailPlayer[playerid] == 1)
    {
        new 
bailplayerr random(7000) + 1000;
        if(
bailplayerr GetPlayerCash(playerid))
        {
            if(
GetPlayerMoney(playerid) < bailplayerr) return SendClientMessage(playeridCOLOR_RED"{FF0000}Error: {FFFFFF}You don't have engouh money to bail yourself."); 
PHP Code:
forward pJailTimer(playerid);
public 
pJailTimer(playerid)
{
    new 
bailplayerr random(7000) + 1000;
    
RemovePlayerAttachedObject(playerid9);
    
SetPlayerSpecialAction(playeridSPECIAL_ACTION_NONE);
    
PlayerInfo[playerid][pJailed] = 1;
    
pJailCount[playerid]--;
    new 
string[128];
    
format(stringsizeof(string), "%d"pJailCount[playerid]);
    
TextDrawSetString(Textdraw1string);
    
format(stringsizeof(string), "$%d"bailplayerr); 
How to Stop changing alot of amount's I just want Random Bail amount from 7k - 1k but they giving me a changing amounts...
Reply


Messages In This Thread
Same amount! - by Man43 - 25.07.2018, 07:38
Re: Same amount! - by Man43 - 25.07.2018, 09:43
Re: Same amount! - by Florin48 - 25.07.2018, 10:02
Re: Same amount! - by Man43 - 25.07.2018, 12:13
Re: Same amount! - by Florin48 - 25.07.2018, 12:21

Forum Jump:


Users browsing this thread: 1 Guest(s)