Write .cfgs with Pawno?
#1

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
Reply
#2

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.
Reply
#3

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)