SA-MP Forums Archive
Dudb users - 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: Dudb users (/showthread.php?tid=573888)



Dudb users - aCloudy - 11.05.2015

Hello, I'm using udb system to save accounts.
I register an account, But I do not find in scriptfiles folder, But when I reconnect, I see that the account is registered and the stats are saved, How can I know where is the file saved ?


Re: Dudb users - sammp - 11.05.2015

How can I know where the file is saved if I ain't got no goddamned code?


Re: Dudb users - aCloudy - 11.05.2015

Quote:
Originally Posted by sammp
Посмотреть сообщение
How can I know where the file is saved if I ain't got no goddamned code?
There is no code in my gamemode script to make the files save in specified file in scriptfiles.
It must be saved on MySVR/scriptfiles not anywhere else.

Код:
if (udb_Create(PlayerName(playerid),inputtext))
		{
			PLAYERLIST_authed[playerid]=1;
	     	dUserSetINT(PlayerName(playerid)).("Money",500);
		    dUserSetINT(PlayerName(playerid)).("Score",0);
		    dUserSetINT(PlayerName(playerid)).("AdminLevel",0);
		    dUserSetINT(PlayerName(playerid)).("Job",NOJOB);
		    GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("Money")-GetPlayerMoney(playerid));
		    SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("Score")-GetPlayerScore(playerid));
		    AdminLevel[playerid] =dUserINT(PlayerName(playerid)).("AdminLevel");
		    Job[playerid] =dUserINT(PlayerName(playerid)).("Job");
		    SelectedJob[playerid] = 0;
		}