02.08.2010, 12:46
(
Последний раз редактировалось Hor1z0n; 17.08.2010 в 09:55.
)
I made a /register and /login commands after the instructions of a Tutorial with Dini and dudb but the money don't save when i exit.Please help me!
enum PlayerData
{
Money,
};
dUserSetINT(PlayerName2(playerid)).("money",0);
PlayerInfo[playerid][Money] = SetPlayerMoney(playerid, dUserINT(PlayerName2(playerid)).("money"));
dUserSetINT(PlayerName2(playerid)).("money",GetPlayerMoney(playerid));
Top of you FS or GM
pawn Код:
pawn Код:
pawn Код:
pawn Код:
|
new PlayerName2;
PlayerName2 = GetPlayerName(playerid);
C:\Documents and Settings\user\Desktop\samp03asvr_R8_win32\gamemodes\begwar.pwn(737) : error 012: invalid function call, not a valid address C:\Documents and Settings\user\Desktop\samp03asvr_R8_win32\gamemodes\begwar.pwn(737) : warning 215: expression has no effect C:\Documents and Settings\user\Desktop\samp03asvr_R8_win32\gamemodes\begwar.pwn(737) : error 001: expected token: ";", but found ")" C:\Documents and Settings\user\Desktop\samp03asvr_R8_win32\gamemodes\begwar.pwn(737) : error 029: invalid expression, assumed zero C:\Documents and Settings\user\Desktop\samp03asvr_R8_win32\gamemodes\begwar.pwn(737) : fatal error 107: too many error messages on one line
dUserSetINT(PlayerName(playerid)).("Cash",GetPlayerMoney(playerid));