3 Error after DIALOG_STYLE_PASSWORD
#1

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.
Reply
#2

Because it's DIALOG_STYLE_INPUT.
Reply
#3

can you please change them into "DIALOG_STYLE_PASSWORD"
Reply
#4

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.
Reply
#5

Nvm.
Reply
#6

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.
Reply
#7

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

what latest include i needed to change it into DIALOG_STYLE_PASSWORD
Reply
#9

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
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)