/server dialog help, [SIMPLE]
#5

EDIT: Just re-read what you posted. That's what Tyler basically changed but it still wouldn't compile unless you used the code i gave you as there was a misplaced bracket that was "{" instead of "}".


What exactly do you want to know? What was changed?

I changed: (marked with //line i changed.
pawn Код:
if(dialogid == DIALOG_LOGIN)
    {
        if(response)
        {
            GetPlayerName(playerid, pName, 24);
            mysql_real_escape_string(inputtext, inputtext, TuberiasMySQL);
            format(str, sizeof(str), "SELECT * FROM users WHERE username='%s'", pName);
            mysql_function_query(TuberiasMySQL, str, true, "OnQueryFinish", "iis", 0,playerid, inputtext);
        }
        else
        {
            SendClientMessage(playerid, COL_RED, "KICKED: You need to login to play here");
            Kick(playerid);
        }
    {//line i changed - reason: You just got the bracket mixed up. You were suppose to close it ('}').
Also; you had
pawn Код:
#definfe DIALOG_SERVER
not
pawn Код:
#define DIALOG_SERVER
Reply


Messages In This Thread
/server dialog help, [SIMPLE] - by PabloDiCostanzo - 22.09.2013, 15:24
Re: /server dialog help, [SIMPLE] - by tyler12 - 22.09.2013, 15:25
Re: /server dialog help, [SIMPLE] - by EiresJason - 22.09.2013, 15:31
Respuesta: /server dialog help, [SIMPLE] - by PabloDiCostanzo - 22.09.2013, 15:35
Re: /server dialog help, [SIMPLE] - by EiresJason - 22.09.2013, 15:37
AW: /server dialog help, [SIMPLE] - by Skimmer - 22.09.2013, 16:19
Respuesta: /server dialog help, [SIMPLE] - by PabloDiCostanzo - 23.09.2013, 19:21
Re: /server dialog help, [SIMPLE] - by EiresJason - 23.09.2013, 19:32
Respuesta: /server dialog help, [SIMPLE] - by PabloDiCostanzo - 23.09.2013, 20:37
Re: /server dialog help, [SIMPLE] - by EiresJason - 23.09.2013, 20:40

Forum Jump:


Users browsing this thread: 6 Guest(s)