SA-MP Forums Archive
dialogs - 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: dialogs (/showthread.php?tid=249424)



dialogs - fissekarl - 18.04.2011

fixed thanks to JaTochNietDan


Re: dialogs - fissekarl - 18.04.2011

I need this right now :S Please anyone help


Re: dialogs - xir - 18.04.2011

EDIT: ah damn nvm


- fissekarl - 18.04.2011

fixed


Re: dialogs - JaTochNietDan - 18.04.2011

I don't understand your syntax here:

pawn Код:
if(strval(inputtext) != 5000) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "pass", "pass\n\nwrong pass\n\npass", "Pass", "Cancel");
            {
                format(string, sizeof(string), "%s",PlayerName(playerid));
                SendClientMessage(playerid, -1, string);
            }
            if(strval(inputtext) != 6000) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "pass", "pass\n\nwrong pass\n\npass", "Pass", "Cancel");
            {
                SendClientMessage(playerid, Green, "You have succesfully logged in");
                format(string, sizeof(string), "%s",PlayerName(playerid));
                SendClientMessage(playerid, COLOR_GREEN, string);
            }
I assume you're missing an else statement for both of those? Either way it would seem that you're making this situation far more complicated than it has to be, this would suffice, assuming this is what you want:

pawn Код:
if(strval(inputtext) != 1200 && strval(inputtext) != 1500) return ShowPlayerDialog(....)
else
{
    // Password was right
}



Re: dialogs - fissekarl - 18.04.2011

fixed