SA-MP Forums Archive
3 Error after DIALOG_STYLE_PASSWORD - 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)
+--- Thread: 3 Error after DIALOG_STYLE_PASSWORD (/showthread.php?tid=319263)



3 Error after DIALOG_STYLE_PASSWORD - varuncoolrule - 18.02.2012

I'm new to scripting please help me when i do this i shows 3 Errors
pawn Код:
ShowMainMenuDialog(playerid, frame)
{
    new titlestring[64];
    new string[256];

    switch(frame)
    {
        case 1:
        {
            new ip[32];
            GetPlayerIp(playerid, ip, 32);
            format(titlestring, sizeof(titlestring), "Login - %s", GetPlayerNameEx(playerid));
            format(string, sizeof(string), "Welcome to Express Gaming Roleplay, %s.\n\nIP Address: %s\n\nThe name that you are using is registered, please enter a password to login:", GetPlayerNameEx(playerid),  ip);
            ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit");
        }
        case 2:
        {
            new ip[32];
            GetPlayerIp(playerid, ip, 32);
            format(titlestring, sizeof(titlestring), "Register - %s", GetPlayerNameEx(playerid));
            format(string, sizeof(string), "Welcome to Express Gaming Roleplay, %s.\n\nIP Address: %s\n\nYou may register an account by entering a desired password here:", GetPlayerNameEx(playerid),  ip);
            ShowPlayerDialog(playerid,MAINMENU2,DIALOG_STYLE_PASSWORD,titlestring,string,"Register","Exit");
        }
        case 3:
        {
            new ip[32];
            GetPlayerIp(playerid, ip, 32);
            format(titlestring, sizeof(titlestring), "Login - %s", GetPlayerNameEx(playerid));
            format(string, sizeof(string), "Invalid Password!\n\nWelcome to Express Gaming Roleplay, %s.\n\nIP Address: %s\n\nThe name that you are using is registered, please enter a password to login:", GetPlayerNameEx(playerid),  ip);
            ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit");
        }
    }
}
And The Errors are
pawn Код:
F:\My favorite sa-mp script\gamemodes\EGRP(2).pwn(8652) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
F:\My favorite sa-mp script\gamemodes\EGRP(2).pwn(8660) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
F:\My favorite sa-mp script\gamemodes\EGRP(2).pwn(8668) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.



Re: 3 Error after DIALOG_STYLE_PASSWORD - Nonameman - 18.02.2012

Because it's DIALOG_STYLE_INPUT.


Re: 3 Error after DIALOG_STYLE_PASSWORD - varuncoolrule - 18.02.2012

can you please change them into "DIALOG_STYLE_PASSWORD"


Re: 3 Error after DIALOG_STYLE_PASSWORD - WackoX - 18.02.2012

Quote:
Originally Posted by Nonameman
Посмотреть сообщение
Because it's DIALOG_STYLE_INPUT.
It's DIALOG_STYLE_PASSWORD, and OP probably doesn't have updated he's includes to the latest version.


Re: 3 Error after DIALOG_STYLE_PASSWORD - Nonameman - 18.02.2012

Nvm.


Re: 3 Error after DIALOG_STYLE_PASSWORD - WackoX - 18.02.2012

Quote:
Originally Posted by Nonameman
Посмотреть сообщение
There are only 3 dialog styles: DIALOG_STYLE_MSGBOX, DIALOG_STYLE_LIST and DIALOG_STYLE_INPUT.
https://sampwiki.blast.hk/wiki/Dialog_Styles

Read again.


Re: 3 Error after DIALOG_STYLE_PASSWORD - emokidx - 18.02.2012

the only thing i can think of is you dont have the latest server files/pawno


Re: 3 Error after DIALOG_STYLE_PASSWORD - varuncoolrule - 18.02.2012

what latest include i needed to change it into DIALOG_STYLE_PASSWORD


Re: 3 Error after DIALOG_STYLE_PASSWORD - varuncoolrule - 18.02.2012

Quote:
Originally Posted by Nonameman
Посмотреть сообщение
There are only 3 dialog styles: DIALOG_STYLE_MSGBOX, DIALOG_STYLE_LIST and DIALOG_STYLE_INPUT.
There are four types
0 - DIALOG_STYLE_MSGBOX


1 - DIALOG_STYLE_INPUT


2 - DIALOG_STYLE_LIST


3 - DIALOG_STYLE_PASSWORD


Re: 3 Error after DIALOG_STYLE_PASSWORD - Nonameman - 18.02.2012

Quote:
Originally Posted by WackoX
Посмотреть сообщение
Quote:
Originally Posted by varuncoolrule
Посмотреть сообщение
There are four types
0 - DIALOG_STYLE_MSGBOX


1 - DIALOG_STYLE_INPUT


2 - DIALOG_STYLE_LIST


3 - DIALOG_STYLE_PASSWORD
My fault, sorry. Last time I saw this wiki page, there was only 3 types.