How to Save Status of My Gang ?? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to Save Status of My Gang ?? (
/showthread.php?tid=145650)
How to Save Status of My Gang ?? -
soranaki - 03.05.2010
I want to save the status of gang
The file gang.cfg.
I want a command to change status And state is this.
If you help me to thank.
Translate Thai into English. by ******
Re: How to Save Status of My Gang ?? -
soranaki - 03.05.2010
.......
Re: How to Save Status of My Gang ?? -
Conroy - 03.05.2010
I save my gangs/factions in .ini's.
pawn Код:
public OnGameModeInit()
{
new file[48] = "\\gang.ini";
if(!dini_Exists(file)) {
dini_Create(file);
// Set the information...
// For example, this will save the gangs money:
// Dini_IntSet(file, "Money", 0);
}
if(dini_Exists(file)) {
// Get the information from your file...
// For example, this will get the gangs money:
// Dini_Int(file, "Money");
}
Re: How to Save Status of My Gang ?? -
soranaki - 05.05.2010
Thank You.