enum saving help
#1

Ok i have a fuel system that saves in game but once you /q and relog you lost all the fuel you have,How can i save it into a file so then i can GetPlayerInfo in OnPlayerSpawn so thay will have there fuel they originally had?

This is what i have:

pawn Код:
enum pInfo
{
    FuelAmount,
}

new PlayerInfo[MAX_PLAYERS][pInfo];

//This is how i give and take fuel
PlayerInfo[playerid][FuelAmount] = PlayerInfo[playerid][FuelAmount] -200;

PlayerInfo[playerid][FuelAmount] = PlayerInfo[playerid][FuelAmount] +200;

//etc etc etc
Any help?

Thanks In Advanced!
Reply


Messages In This Thread
enum saving help - by <Weponz> - 01.12.2010, 13:26
Re: enum saving help - by Jochemd - 01.12.2010, 13:27
Re: enum saving help - by <Weponz> - 01.12.2010, 13:31
Re: enum saving help - by Jochemd - 01.12.2010, 13:32
Re: enum saving help - by <Weponz> - 01.12.2010, 13:34
Re: enum saving help - by Jochemd - 01.12.2010, 13:37
Re: enum saving help - by Kwarde - 01.12.2010, 13:37
Re: enum saving help - by Jochemd - 01.12.2010, 13:41
Re: enum saving help - by Kwarde - 01.12.2010, 15:20

Forum Jump:


Users browsing this thread: 2 Guest(s)