I have an dialog who have no effect - 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: I have an dialog who have no effect (
/showthread.php?tid=150269)
I have an dialog who have no effect -
scott1 - 25.05.2010
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
Re: I have an dialog who have no effect -
scott1 - 25.05.2010
up
Re: I have an dialog who have no effect -
scott1 - 26.05.2010
up
Re: I have an dialog who have no effect -
park4bmx - 26.05.2010
Does it have no effect when u
REGISTER OR
LOGIN
Re: I have an dialog who have no effect -
scott1 - 26.05.2010
when i type may login command all is right
Re: I have an dialog who have no effect -
park4bmx - 26.05.2010
Quote:
Originally Posted by scott1
when i type may login command all is right 
|
So is only when you
LOGIN
Explain MORE PLS
Re: I have an dialog who have no effect -
scott1 - 26.05.2010
Some one answerd me in french ^^