Bank money || Team saving !!
#1

Well, I made bank system in my RP server, but weird thing, that I can only save money on hand, and can't save bank money, so I would really appreciate, if you help.
I already made a whole system, and I know how it works except this.
Код:
stock SaveCash(playerid)
{
if(IsLogged[playerid] == 1)
{
new name[MAX_PLAYER_NAME];
new file[128];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),"%s.ini",name);
if(fexist(file))
{
dini_IntSet(file, "Cash", GetPlayerMoney(playerid));
dini_IntSet(file, "Bank", PlayerInfo[playerid][Bank]);
}
Код:
		
SetPlayerMoney(playerid, dini_Int(file, "Cash"));
SetPlayerMoney(playerid, dini_Int(file, "Bank"));
I know "SetPlayerMoney" is wrong line about bank, but just tell me what to write there!

Now 2nd question:
I want when someone use /login, he gets into faction that he got last connection.
I don't want [prank] or something, I just use [gTeam].

Thanks in avance
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)