Dialog Problem
#1

when i put this in my sricpt i get this error

can anyone help me thanks in advance

C:\Users\Robin\Desktop\mod by FrostJkeee\gamemodes\RolePlay.pwn(5170 : error 029: invalid expression, assumed zero
C:\Users\Robin\Desktop\mod by FrostJkeee\gamemodes\RolePlay.pwn(51755) : warning 209: function "OnDialogResponse" should return a value
C:\Users\Robin\Desktop\mod by FrostJkeee\gamemodes\RolePlay.pwn(51757) : error 010: invalid function or declaration

pawn Код:
}
        }
    }
    if(dialogid == 1244)
    {
        if(response)
        {
            if (gPlayerAccount[playerid] != 0)
            {
                ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Welcome, Please Log-In","Type your password below to log-in","Log-in","Quit");
            }
            else
            {
                ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_INPUT,"Welcome, Please Register","Type your password below to register a new account.","Register","Quit");
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY,"* You selected \"Refuse\", To play you must agree to the terms of condition");
                Kick(playerid);
            }
        }
    }
    if(dialogid == 1245)
    {
        if(response)
        {
            strmid(Typed[playerid], inputtext, 0, strlen(inputtext), 255);
            if(!strcmp(Typed[playerid], "None", true))
            {
                ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Try Again, Please Log-In","You didn't typed a password!\nType your password below to log-in","Log-in","Quit");
            }
            else
            {
                OnPlayerLogin(playerid, inputtext);
               }
            }
            else
            {
                Kick(playerid);
            }
        }
        if(dialogid == 1246)
        {
            if(response == 1)
            {
                if(strlen(inputtext) < 3)
                {
                    ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_INPUT,"Try Again, Please Register","The password entered is Too Short!\nType your password below to register a new account.","Register","Quit");
                    return 1;
                }
                if(strlen(inputtext) > 20)
                {
                    ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_INPUT,"Try Again, Please Register","The password entered is too Long!\nType your password below to register a new account.","Register","Quit");
                    return 1;
                }
                OnPlayerRegister(playerid, inputtext);
            }
            else
            {
                Kick(playerid);
            }
        }
    }
Reply


Messages In This Thread
Dialog Problem - by GTA-Roleplay - 30.10.2011, 10:58
Re: Dialog Problem - by =WoR=Varth - 30.10.2011, 11:06
Re: Dialog Problem - by GTA-Roleplay - 30.10.2011, 11:13
Re: Dialog Problem - by SmiT - 30.10.2011, 11:14
Re: Dialog Problem - by GTA-Roleplay - 30.10.2011, 11:19
Re: Dialog Problem - by SmiT - 30.10.2011, 11:28
Re: Dialog Problem - by GTA-Roleplay - 30.10.2011, 11:34
Re: Dialog Problem - by GTA-Roleplay - 30.10.2011, 12:03

Forum Jump:


Users browsing this thread: 2 Guest(s)