Jump to content

Question

Posted

Am bagat system de admin in GM si si in fscriptfiles este ladmin si nu salveaza conturile in ladmin/user si nu ciuteste  \ladmin\config absolut nimik si conturile acum se salveaza in scriptfiles .dudb  in locc sa se salveaze .sav  stiti cumva ce are?

ce am gresit aici unde se facc conturile in /ladmin/users/?

	//-----------------------------------------------------
	new Registre[128];
	new name[MAX_PLAYER_NAME];
    if(!udb_Exists(PlayerName2(playerid)))
    {
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    format(Registre,sizeof(Registre),"{0049FF}Welcome {FFFF00}%s!\n\n{FA0000}Please register to continue!",name);
    ShowPlayerDialog(playerid,128,DIALOG_STYLE_INPUT,"Register",Registre,"Register","Ban");
	}
	else
	{
	    PlayerInfo[playerid][Registered] = 1;
		format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(PlayerName));
		new tmp2[256]; tmp2 = dini_Get(file,"ip");
		if( (!strcmp(tmp3,tmp2,true)) && (ServerInfo[AutoLogin] == 1) )
		{
			LoginPlayer(playerid);
			if(PlayerInfo[playerid][Level] > 0)
			{
				format(string,sizeof(string),"{00CEFC}ACCOUNT: {00FF19}You have been automatically logged in. {FFFFFF}({00CEFC}Level {FC0303}%d{FFFFFF})", PlayerInfo[playerid][Level] );
				SendClientMessage(playerid,green,string);
       		}
	   		else SendClientMessage(playerid,green,"{00CEFC}ACCOUNT: {00FF19}You have been automatically logged in.");
  	    }
 		else SendClientMessage(playerid, green, "{00CEFC}ACCOUNT: {00FF19}This nickname is registed {FC0303}, {00FF19}you can now login by typing {FC0303}/login {FFFFFF}[{00CEFC}password{FFFFFF}]");
	}

  • www.LcsNet.org
  • 91.233.106.13:7777
  • www.Joc-Miniclip.info

18 answers to this question

Recommended Posts

Posted

daca nu poti baga asa cv in gm lasate de meserie ...

ba taci din gura nici un teleport nu stii sa faci si faci prosturi degeaba punete sa iti bagi sys de adm in gm sa te vedem :)) ce iti iese :))) daca iti apare o eroare nu mai faci nimik asa ca taci

  • www.LcsNet.org
  • 91.233.106.13:7777
  • www.Joc-Miniclip.info

Posted

pai vezi u ma ca nu mai se salveaza useri in ladmin/user intr-un cuvand nu mai merge folderul ladmin din scriptfiles

  • www.LcsNet.org
  • 91.233.106.13:7777
  • www.Joc-Miniclip.info

Posted

Ba frate tu esti turk? despre ce este vorba, ce vrei sa faci cu ladmin, si ce ai bagat

in el de nu ti se mai salveaza nimic?

Posted

am bagat systemul de admin in gm  si nu se mai salveaza conturile etc etc.

Nimeni nu te poate ajuta pt ca numa tu sti cum/ce ai bagat.

Poate ai copiat/pus gresit ceva..

 

Posted

ce am gresit aici unde se facc conturile in /ladmin/users/?

	//-----------------------------------------------------
	new Registre[128];
	new name[MAX_PLAYER_NAME];
    if(!udb_Exists(PlayerName2(playerid)))
    {
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    format(Registre,sizeof(Registre),"{0049FF}Welcome {FFFF00}%s!\n\n{FA0000}Please register to continue!",name);
    ShowPlayerDialog(playerid,128,DIALOG_STYLE_INPUT,"Register",Registre,"Register","Ban");
	}
	else
	{
	    PlayerInfo[playerid][Registered] = 1;
		format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(PlayerName));
		new tmp2[256]; tmp2 = dini_Get(file,"ip");
		if( (!strcmp(tmp3,tmp2,true)) && (ServerInfo[AutoLogin] == 1) )
		{
			LoginPlayer(playerid);
			if(PlayerInfo[playerid][Level] > 0)
			{
				format(string,sizeof(string),"{00CEFC}ACCOUNT: {00FF19}You have been automatically logged in. {FFFFFF}({00CEFC}Level {FC0303}%d{FFFFFF})", PlayerInfo[playerid][Level] );
				SendClientMessage(playerid,green,string);
       		}
	   		else SendClientMessage(playerid,green,"{00CEFC}ACCOUNT: {00FF19}You have been automatically logged in.");
  	    }
 		else SendClientMessage(playerid, green, "{00CEFC}ACCOUNT: {00FF19}This nickname is registed {FC0303}, {00FF19}you can now login by typing {FC0303}/login {FFFFFF}[{00CEFC}password{FFFFFF}]");
	}

  • www.LcsNet.org
  • 91.233.106.13:7777
  • www.Joc-Miniclip.info

Posted

jupanu cred ca greseala ai facut-o aici:

[pawn]if(!udb_Exists(PlayerName2(playerid)))[/pawn]

cred ca era:

[pawn]if(!dudb_Exists(PlayerName2(playerid)))[/pawn]

si aici:

[pawn]format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(PlayerName));[/pawn]

o fi fost asa:

[pawn]format(file,sizeof(file),"/ladmin/users/%s.sav",dudb_encode(PlayerName));[/pawn]

Posted

nuu nu e de acolo asa credd vadd ca imi da 2 erori ;) unde am modificat cum ai ziss u ;)

  • www.LcsNet.org
  • 91.233.106.13:7777
  • www.Joc-Miniclip.info

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.