Bank System problem
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#4

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.
Reply
#5

use playerid...
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)