SA-MP Forums Archive
username.dudb.sav - 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: username.dudb.sav (/showthread.php?tid=149434)



username.dudb.sav - Andy_McKinley - 22.05.2010

Hello! My register system works great, nothing wrong with it. But I don't like the ''username.dudb.sav'' I just want username or [M]blewer and not _05m_06blewert.dudb.sav or whatever. What can I do?


Re: username.dudb.sav - woot - 22.05.2010

Modify your dudb.inc - there's a function called udb_encode.


Re: username.dudb.sav - Andy_McKinley - 22.05.2010

Quote:
Originally Posted by //exora
Modify your dudb.inc - there's a function called udb_encode.
More info please.


Re: username.dudb.sav - woot - 22.05.2010

What more info? You'll find the function you might want to modify.


Re: username.dudb.sav - Andy_McKinley - 22.05.2010

Quote:
Originally Posted by //exora
What more info? You'll find the function you might want to modify.
I don't know what to edit in dudb. I'm currently looking in my dudb folder inside include.


Re: username.dudb.sav - Hiddos - 22.05.2010

Quote:
Originally Posted by DarkPhoenix
Quote:
Originally Posted by //exora
What more info? You'll find the function you might want to modify.
I don't know what to edit in dudb. I'm currently looking in my dudb folder inside include.
Change the save path.
Go through your .dudb include and find and replace and %.dudb.sav lines. Example:

Quote:

format(tmp,sizeof(tmp),"%s.dudb.sav",udb_encode(nickname));

Becomes

Quote:

format(tmp,sizeof(tmp),"%s.file",udb_encode(nickname));




Re: username.dudb.sav - Andy_McKinley - 22.05.2010

Quote:
Originally Posted by Hiddos
Quote:
Originally Posted by DarkPhoenix
Quote:
Originally Posted by //exora
What more info? You'll find the function you might want to modify.
I don't know what to edit in dudb. I'm currently looking in my dudb folder inside include.
Change the save path.
Go through your .dudb include and find and replace and %.dudb.sav lines. Example:

Quote:

format(tmp,sizeof(tmp),"%s.dudb.sav",udb_encode(nickname));

Becomes

Quote:

format(tmp,sizeof(tmp),"%s.file",udb_encode(nickname));

There are more
Quote:

format(tmp,sizeof(tmp),"%s.dudb.sav",udb_encode(nickname));

Do I need to replace them all? And I need to edit something in my gamemode script?


Re: username.dudb.sav - 0ne - 22.05.2010

Dude just edit udb_encode function -_-


Re: username.dudb.sav - Andy_McKinley - 22.05.2010

Quote:
Originally Posted by 0ne
Dude just edit udb_encode function -_-
All of them?


Re: username.dudb.sav - 0ne - 22.05.2010

stock udb_encode(nickname[]) {

Uhh...