SA-MP Forums Archive
Help with database file ( Cops-Robbers-RPG ) - 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)
+--- Thread: Help with database file ( Cops-Robbers-RPG ) (/showthread.php?tid=468622)



Help with database file ( Cops-Robbers-RPG ) - RGerculy - 09.10.2013

Hello, I setup San Fierro Cops-Robbers-RPG v1.1 https://sampforum.blast.hk/showthread.php?tid=223963 on my linux server but I have some problems. I edit userfile ( admin.dudb.sav ) and tried to promote myself to CIA however on login I couldn't.

Here is the file :

Код:
password_hash=*********
Money=7500
Bankcash=5000
Score=1000
Adminlevel=1337
Nameban=0
Army=0
CIA=1
RegularPlayer=1
DrugHouseOwner=0
OttoOwner=0
TSkill=0
RobSkill=1
HasPackC4=0
HasPackRope=0
HasPackMoney=0
SavedJailTime=0
SavedWantedLevel=0
IP=**********
Cash=87496
I'm not really a friend with text based database therefore not sure if I'm doing right.
Initially CIA was 0 and I changed it to 1.


Re: Help with database file ( Cops-Robbers-RPG ) - DanishHaq - 09.10.2013

If you're editing a user file, you need to make sure you're offline whilst doing this, or the player that you're editing is offline, or else it can cause conflicts. I'd suggest also that when you're editing files, use a file editor instead of notepad, because some servers will only allow you to use file editors, i.e. gVim.


Re: Help with database file ( Cops-Robbers-RPG ) - RGerculy - 09.10.2013

I was offline, I try your suggested editor. I use Notepad ++ for general development.

--
Still nothing, I even switch off the server when I was uploading the file but nothing.


Re: Help with database file ( Cops-Robbers-RPG ) - DanishHaq - 09.10.2013

It seems like the server's not loading that variable then from the script.


Re: Help with database file ( Cops-Robbers-RPG ) - RGerculy - 09.10.2013

Any idea how to make it working ?


Re: Help with database file ( Cops-Robbers-RPG ) - RGerculy - 10.10.2013

UP !
--
Sorry for double post.


Re: Help with database file ( Cops-Robbers-RPG ) - _Mohit_ - 10.10.2013

See inside the script.I assume if you set cia to 1337 you might get it.Try it.Because SFCRRPG dosent save CIA as 1.It saves as 1337.Try it out and tell the result.


Re: Help with database file ( Cops-Robbers-RPG ) - RGerculy - 10.10.2013

Awesome Works
Thank you. +REP ( I add it tomorrow )