24.01.2010, 08:45
Well. To write it use,
dUserSetINT(PlayerName2(playerid)).("Cash",GetPlay erMoney(playerid));
stock PlayerName2(playerid) {
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
return name;
}
You have to make a saveplayer public.
And put this in it. And other things.
And put OnPlayerSave(playerid); under onplayerdisconnect.
dUserSetINT(PlayerName2(playerid)).("Cash",GetPlay erMoney(playerid));
stock PlayerName2(playerid) {
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
return name;
}
You have to make a saveplayer public.
And put this in it. And other things.
And put OnPlayerSave(playerid); under onplayerdisconnect.