SA-MP Forums Archive
Write .cfgs with Pawno? - 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: Write .cfgs with Pawno? (/showthread.php?tid=74762)



Write .cfgs with Pawno? - Leettari - 25.04.2009

I'm having an issue with SaveSafes and LoadSafes scripts. SaveSafe should write a .cfg to scriptfiles, and it does, but it doesn't work properly. No issues when compiling, but when I run the server and enter game and type a command which which includes in some part of the command script SaveSafes(playerid); , GM crashes. You can type, but it won't print anything to chat anymore, this also crashes the IRC-bot.

My guess is there's something wrong in the script below.
http://pastebin.com/f6ee8513b


Re: Write .cfgs with Pawno? - Think - 25.04.2009

Quote:
Originally Posted by FishSquirrel
I'm having an issue with SaveSafes and LoadSafes scripts. SaveSafe should write a .cfg to scriptfiles, and it does, but it doesn't work properly. No issues when compiling, but when I run the server and enter game and type a command which which includes in some part of the command script SaveSafes(playerid); , GM crashes. You can type, but it won't print anything to chat anymore, this also crashes the IRC-bot.

My guess is there's something wrong in the script below.
http://pastebin.com/f6ee8513b
your wrting .cfg files not ini files, ini_GetValue( Data ); will crash because you need to write it as ini too.


Re: Write .cfgs with Pawno? - Leettari - 25.04.2009

So should I replace ini_GetValue( Data ); lines with some other functions, or make them to write in to .ini too?


Re: Write .cfgs with Pawno? - Leettari - 26.04.2009

If someone could throw a link to some helpful guide or tell with few words how to solve the issue I would be glad. This issue is the last one in my GM, I've scripted a lot of new updates, and now only this is jamming the release date of script, so would be nice to have tip or few how to solve this, thanks.