SA-MP Forums Archive
Debt Money - 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: Debt Money (/showthread.php?tid=566963)



Debt Money - Ugaustin - 09.03.2015

what can I add to getplayer money from bank account.. si if they on minus in bank they go to jail!!

PHP код:
if(GetPlayerCash(j) < 0)
            {
                if(
MoneyMessage[j]==0)
                {
                    
format(stringsizeof(string), "You are in debt, you have till next Time Check to get: $%d or you go to jail."GetPlayerCash(j));
                    
SendClientMessage(jCOLOR_LIGHTREDstring);
                    
MoneyMessage[j] = 1;
                }
            }
            else
            {
                
MoneyMessage[j] = 0;
            } 



Re: Debt Money - Abagail - 09.03.2015

Well use the bank enumator in place of GetPlayerCash. Example:
pawn Код:
if(PlayerData[j][pBankAccount] < 0)
{
    .///
}



Re: Debt Money - CalvinC - 09.03.2015

Use your bank account array instead of GetPlayerMoney, you will have to show us how you declare that for us to help.


Re: Debt Money - Ugaustin - 09.03.2015

but I want getplayercash too and account money.. both...


Re: Debt Money - WeirdestYeti - 09.03.2015

Quote:
Originally Posted by Ugaustin
Посмотреть сообщение
but I want getplayercash too and account money.. both...
Count them both togheter.


Re: Debt Money - Ugaustin - 09.03.2015

....