Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define PATHa "Gangpoints/%s.ini"
- enum gInfo
- {
- gGP1,
- gGP2,
- gGP3
- }
- new GangInfo[gInfo];
- forward Loadgp_data(name[],value[]);
- public Loadgp_data(name[],value[])
- {
- INI_Int("gang1gp",GangInfo[gGP1]);
- INI_Int("gang2gp",GangInfo[gGP2]);
- INI_Int("gang3gp",GangInfo[gGP3]);
- return 1;
- }
- public OnGameModeExit()
- {
- new INI:myFile = INI_Open("Gangpoints.ini");
- INI_SetTag(myFile,"tag1");
- INI_WriteInt(myFile,"gang1gp",GangInfo[gGP1]);
- INI_WriteInt(myFile,"gang2gp",GangInfo[gGP2]);
- INI_WriteInt(myFile,"gang3gp",GangInfo[gGP3]);
- INI_Close(myFile);
- return 1; //INI_Int("gang1gp",GangInfo[gGP1]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement