Bank money || Team saving !! - 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 money || Team saving !! (
/showthread.php?tid=154616)
Bank money || Team saving !! -
samuel_hamza - 14.06.2010
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