SA-MP Forums Archive
Bank System problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bank System problem (/showthread.php?tid=165302)



Bank System problem - KennethRandall - 04.08.2010

I have a problem, tihs is my OnPlayerDisconnect:

pawn Код:
format(file, sizeof(file), Bank, sendername);
    dini_IntSet(file, "Balance", BankInfo[playerid][Balance]);
When the server restarts, their cash reset, how? Help me


Re: Bank System problem - Mike Garber - 04.08.2010

sendername? What is sendername, post the define of sendername.

Also, Bank has nothing to do with Cash. On the bank you have stored money, cash is what you got in your pocket with you.

It looks like you or somebody else just copied and pasted this from a command into OnPlayerDisconnect.


Re: Bank System problem - KennethRandall - 04.08.2010

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
sendername? What is sendername, post the define of sendername.

Also, Bank has nothing to do with Cash. On the bank you have stored money, cash is what you got in your pocket with you.

It looks like you or somebody else just copied and pasted this from a command into OnPlayerDisconnect.
I didn't copy, point one, sendername is the guy who deposit cash, and with this "cash" I mean the cash he stored in bank, when he conncects again, its gone, and this is my own system


Re: Bank System problem - Mike Garber - 04.08.2010

Money stored in the bank is not cash, that Is digits. xD

OnT: Show me everything how you format "file", "sendername" and your Deposit function.

If you don't wanna make It public, you can PM me it.
I don't need the whole thing, just how you define "sendername", "file" and the way you are storing the money in that variable.


Re: Bank System problem - Kar - 04.08.2010

use playerid...


Re: Bank System problem - KennethRandall - 04.08.2010

Got the error (I think), I forgot GetPlayerName trofl