Faction Pay/Salary doesn't work
#9

Sorry for slow respond

/signcheck code
Код:
CMD:signcheck(playerid, params[])
{
  	if(PlayerInfo[playerid][pPDTime] <= 0)
	{
	    new String[10000];
		{
			if(PlayerInfo[playerid][pDonateRank] >= 2)
			{
				if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "Anda tidak bisa melakukannya saat menyetir.");
				if(PlayerInfo[playerid][pMember] != 0)
				{
					format(String, sizeof(String), "{FFFFFF}PayCheck : {FFFF00}$%s\n{ffffff}Duty Salary: {FFFF00}$%s\n{FFFFFF}Tax : {FF0000}-$%s (%d percent)\n{FFFFFF}Interest: {FFFF00}$%s", FormatMoney(PlayerInfo[playerid][pPayCheck]), FormatMoney(PlayerInfo[playerid][pRank]*PlayerInfo[playerid][pDutyTime]/60), FormatMoney((PlayerInfo[playerid][pPayCheck]/100)*TaxValue), TaxValue ,FormatMoney((PlayerInfo[playerid][pAccount]/100)*(1)));
				}
				else
				{
					format(String, sizeof(String), "{FFFFFF}PayCheck : {FFFF00}$%s\n{FFFFFF}Tax : {FF0000}-%s (%d percent)\n{FFFFFF}Interest: {FFFF00}$%s", FormatMoney(PlayerInfo[playerid][pPayCheck]), FormatMoney((( PlayerInfo[playerid][pPayCheck] / 100 ) * TaxValue)), TaxValue, FormatMoney((PlayerInfo[playerid][pAccount]/100)*(1)));
				}
				ShowPlayerDialog(playerid, 1150, DIALOG_STYLE_MSGBOX, "Sign PayCheck", String,"Get","Cancel");
			}
			else
			{
            if(IsAtBank(playerid))
                    {
				    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "Anda tidak bisa melakukannya saat menyetir.");
					if(PlayerInfo[playerid][pMember] != 0)
					{
						format(String, sizeof(String), "{FFFFFF}PayCheck : {FFFF00}$%s\n{ffffff}Duty Salary: {FFFF00}$%s\n{FFFFFF}Tax : {FF0000}-$%s (%d percent)\n{FFFFFF}Interest: {FFFF00}$%s", FormatMoney(PlayerInfo[playerid][pPayCheck]), FormatMoney(PlayerInfo[playerid][pRank]*PlayerInfo[playerid][pDutyTime]/60), FormatMoney((PlayerInfo[playerid][pPayCheck]/100)*TaxValue), TaxValue ,FormatMoney((PlayerInfo[playerid][pAccount]/100)*(1)));
					}
					else
					{
						format(String, sizeof(String), "{FFFFFF}PayCheck : {FFFF00}$%s\n{FFFFFF}Tax : {FF0000}-%s (%d percent)\n{FFFFFF}Interest: {FFFF00}$%s", FormatMoney(PlayerInfo[playerid][pPayCheck]), FormatMoney((( PlayerInfo[playerid][pPayCheck] / 100 ) * TaxValue)), TaxValue, FormatMoney((PlayerInfo[playerid][pAccount]/100)*(1)));
					}
					ShowPlayerDialog(playerid, 1150, DIALOG_STYLE_MSGBOX, "Sign PayCheck", String,"Get","Cancel");
				}
			}
			return 1;
		}
	    return 1;
	}
	else
	{
	    new String[10000], menit = PlayerInfo[playerid][pPDTime] / 60;
	    format(String, sizeof(String), "ERROR: Kamu dapat mengambil PayCheck %d menit lagi", menit);
	    SendClientMessageEx(playerid,COLOR_WHITE,String);
	}
	return 1;
}
Signcheck Dialog
Код:
	if(dialogid == 1150)
	{
	    if(response)
	   	{
	   	    PayCheck(playerid);
		}
		return 1;
	}
Reply


Messages In This Thread
Faction Pay/Salary doesn't work - by Dirda - 04.03.2018, 05:17
Re: Faction Pay/Salary doesn't work - by Dirda - 05.03.2018, 06:27
Re: Faction Pay/Salary doesn't work - by Dirda - 08.03.2018, 12:45
Re: Faction Pay/Salary doesn't work - by Dirda - 14.03.2018, 12:18
Re: Faction Pay/Salary doesn't work - by PepsiCola23 - 14.03.2018, 12:26
Re: Faction Pay/Salary doesn't work - by Dolf - 14.03.2018, 18:53
Re: Faction Pay/Salary doesn't work - by Dirda - 18.03.2018, 08:36
Re: Faction Pay/Salary doesn't work - by MadeMan - 18.03.2018, 11:50
Re: Faction Pay/Salary doesn't work - by Dirda - 30.03.2018, 13:43
Re: Faction Pay/Salary doesn't work - by MadeMan - 30.03.2018, 13:54

Forum Jump:


Users browsing this thread: 3 Guest(s)