I have an dialog who have no effect
#1

Hi,

On my server, i have an login dialog

here is the code
Код:
format(string,256,"Bienvenue sur West Coast RolePlay\n\nPseudo:\t%s\n\nEntrez votre mot de passe :",name);
			ShowPlayerDialog(playerid,LOGIN,DIALOG_STYLE_INPUT," ",string,"Connection","Annuler");
Here is the ondialogresponse

Код:
if(dialogid == LOGIN)
	{
		if(response)
		{
			new log[256];
			format(log, 256, "/ident %s", inputtext);//la on va faire croire au serveur que le joueur tape /login sonpasse
			return OnPlayerCommandText(playerid, log);// on retourne la reponse dans la callback OnPlayerText ^^
		}
		else
		{
			Kick(playerid);
		}
		return 1;
	}
The login cmd

Код:
if(strcmp(cmd, "/ident", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    new tmppass[64];
			if(gPlayerLogged[playerid] == 1)
			{
				SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "SERVER: Vous кtes dйjа connectй.");
				return 1;
			}
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "USAGE: (/i)dent [motdepasse]");
				return 1;
			}
			strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
			//Encrypt(tmppass);
			OnPlayerLogin(playerid,tmppass);
			Inf[playerid] = 1;
		}
		return 1;
	}
I have Define LOGIN

#define LOGIN 1

But at the connection i write my pass, enter, and.. no effect

Please help me
Reply
#2

up
Reply
#3

up
Reply
#4

Does it have no effect when u REGISTER OR LOGIN
Reply
#5

when i type may login command all is right
Reply
#6

Quote:
Originally Posted by scott1
when i type may login command all is right
So is only when you LOGIN
Explain MORE PLS
Reply
#7

Some one answerd me in french ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)