Jump to content
  • 0

Probleme


jupanu

Question

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

Link to comment
Share on other sites

18 answers to this question

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.