Dialog Problems Again
#1

pawn Код:
CMD:cmds(playerid, params[]){
    #pragma unused params
    switch (Language[playerid])
    {
        case 0:
        {
            ShowPlayerDialog(playerid, 32,DIALOG_STYLE_MSGBOX, "{46BEE6}Server General Commands", "{FF4E8E}Fun Commands:\n {F81414}/alien  /weaponizer /iron /police /incred /trashf \n\n {3F4E8E}House Commands:\n{DEC925}/hmenu /buyh /sellh  /unlockh /kockh /enterh /exith \n\n{FF4EFF}Biz Commands :\n{FF4E8E}/bmenu /buybiz /sellbiz  \n\n{00FF40}Vehcile Commands{F81414} \n{00FFFF}/Vmenu  /Lockcar /Unlockcar \n\n{008740}Reporting Admins Cmds {F81414} \n{FF8740}/Admins /Report [ID] [REASON] /ASK\n\n{FF0000}Other Commands:\n{F81414}/tune /weapon", "Close", "");
        }
    }
    return 1;
}
pawn Код:
C:\Users\Matt\Desktop\SAMP\UMGS\gamemodes\UMG.pwn(13733) : error 075: input line too long (after substitutions)
C:\Users\Matt\Desktop\SAMP\UMGS\gamemodes\UMG.pwn(13734) : error 037: invalid string (possibly non-terminated string)
C:\Users\Matt\Desktop\SAMP\UMGS\gamemodes\UMG.pwn(13734) : error 017: undefined symbol "FF4E8E"
C:\Users\Matt\Desktop\SAMP\UMGS\gamemodes\UMG.pwn(13734) : warning 217: loose indentation
C:\Users\Matt\Desktop\SAMP\UMGS\gamemodes\UMG.pwn(13734) : error 017: undefined symbol "Fun"
C:\Users\Matt\Desktop\SAMP\UMGS\gamemodes\UMG.pwn(13734) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Reply
#2

Nothing bad with your script the dialog input is just too long,
pawn Код:
CMD:cmds(playerid)//Instead of defining the params and unuse them just don't define them
{
    switch (Language[playerid])
    {
        case 0:
        {
            new string[520];
            format(string,sizeof(string),"{FF4E8E}Fun Commands:\n {F81414}/alien  /weaponizer /iron /police /incred /trashf \n\n {3F4E8E}House Commands:\n{DEC925}/hmenu /buyh /sellh  /unlockh /kockh /enterh /exith ");
            strcat(string,"\n\n{FF4EFF}Biz Commands :\n{FF4E8E}/bmenu /buybiz /sellbiz  \n\n{00FF40}Vehcile Commands{F81414} \n{00FFFF}/Vmenu  /Lockcar /Unlockcar \n\n{008740}Reporting Admins Cmds {F81414} \n{FF8740}/Admins /Report [ID] [REASON] /ASK\n\n{FF0000}Other Commands:\n{F81414}/tune /weapon");
            ShowPlayerDialog(playerid, 32,DIALOG_STYLE_MSGBOX, "{46BEE6}Server General Commands", string, "Close", "");
        }
    }
    return 1;
}
EDIT: If you are not able to see full command list in-game just increase the string size.
Reply
#3

maybe you can download Zeex pawn compiler?
i tried it and work without using string
Reply
#4

thanks it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)