Serious problem
#1

Everytime i type a command which brings dialog it says you are already logged in, I have many dialogs in my script none of the dialogs work (they used to work before) only a text appears "you are already logged in "

I have this dialog how can i solve this problem

Quote:

if(dialogid == 1) //LOGIN
{
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
return 1;
}
if(response)
{
if(!strlen(inputtext))
{
DisplayDialogForPlayer(playerid, 1); //Login
SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password.");
return 1;
}
if(strlen(inputtext) >= 50)
{
DisplayDialogForPlayer(playerid, 1); //Login
SendClientMessage(playerid, COLOR_WHITE, "SERVER: Password is too long.");
return 0;
}

Please help
Reply
#2

Do you have more then 1 if(dialogid == 1), each dialog needs to have a separate dialogid so the script knows which one to use when the command is called.

if so change them to different numbers like below

if(dialogid == 1)
if(dialogid == 2)
if(dialogid == 3)
etc etc.
Reply
#3

Each of dialogs are different even though they dont work
Reply
#4

That is strange, could you post another example of another dialog you have?
Reply
#5

pawn Код:
if(dialogid == 1) //LOGIN
{
if(response)
{
if(!strlen(inputtext))
{
DisplayDialogForPlayer(playerid, 1); //Login
SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password.");
return 1;
}
if(strlen(inputtext) >= 50)
{
DisplayDialogForPlayer(playerid, 1); //Login
SendClientMessage(playerid, COLOR_WHITE, "SERVER: Password is too long.");
return 0;
}
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
return 1;
}
Try this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)