01.12.2010, 13:26
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:
Any help?
Thanks In Advanced!
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
Thanks In Advanced!