Problem with dialog_msgbox
#1

why i got errors when i add more text?
Код:
CMD:cmds(playerid,params[])
{
        ShowPlayerDialog(playerid,DIALOG_CMDS,DIALOG_STYLE_MSGBOX,"Commands:","{FFFFFF}If you want to register your account type{FFDD00}/register\n{FFFFFF}To know the server rules use {FFDD00}/rules\n{FFFFFF}If you want login to your account type {FFDD00}/login\n{FFFFFF}If you need server help type {FFDD00}/help\n{FFFFFF}To see someone spree type {FFDD00}/spree\n{FFFFFF}If you want to buy weapons or something type{FFDD00}/shop\n{FFFFFF}To send message from your head type {FFDD00}/w\n{FFFFFF}Need admin? use {FFDD00}/admins\n{FFFFFF}Need vip?type {FFDD00}/vips\n{FFFFFF}For animations type {FFDD00}/animations\n{FFFFFF}If you want duel with someone{FFDD00}/duel [id] [weapon] [price]\n{FFFFFF}To accept duel type {FFDD00}/acceptduel\n{FFFFFF}To decline duel type {FFDD00}/declineduel\n{FFFFFF}For donators {FFDD00}/dcmds\n{FFFFFF} Type {FFDD00}/changeteam {FFFFFF}to change your team\n{FFFFF}To sell stealed jetpack type {FFDD00}/selljp\n{FFFFFF}Type {FFDD00}/derby {FFFFFF}to join event\n{FFFFFF}/stopanim {FFDD00}to stop animation","OK","");
        return 1;
}
Quote:

(14051) : error 075: input line too long (after substitutions)
(14052) : error 037: invalid string (possibly non-terminated string)
(14052) : error 017: undefined symbol "FFFFFF"
(14052) : warning 217: loose indentation
(14052) : error 017: undefined symbol "If"
(14052) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Reply
#2

use so when you have to put a lot of characters

PHP код:
COMMAND:comands(playeridparams[])
{
    new 
Msg[73], Comandos[10];
    
strcat(Msg,"{FFFFFF}If you want to register your account type{FFDD00}/register\n");
    
strcat(Msg,"{FFFFFF}To know the server rules use {FFDD00}/rules\n");
    
strcat(Msg,"{FFFFFF}If you want login to your account type {FFDD00}/login\n");
    
strcat(Msg,"{FFFFFF}If you need server help type {FFDD00}/help\n");
    
strcat(Msg,"{FFFFFF}To see someone spree type {FFDD00}/spree\n");
    
strcat(Msg,"{FFFFFF}If you want to buy weapons or something type{FFDD00}/shop\n");
    
strcat(Msg,"{FFFFFF}To send message from your head type {FFDD00}/w\n");
    
strcat(Msg,"{FFFFFF}Need admin? use {FFDD00}/admins\n");
    
strcat(Msg,"{FFFFFF}Need vip?type {FFDD00}/vips\n");
    
strcat(Msg,"{FFFFFF}For animations type {FFDD00}/animations\n");
    
strcat(Msg,"{FFFFFF}If you want duel with someone{FFDD00}/duel [id] [weapon] [price]\n");
    
strcat(Msg,"{FFFFFF}To accept duel type {FFDD00}/acceptduel\n");
    
strcat(Msg,"{FFFFFF}To decline duel type {FFDD00}/declineduel\n");
    
strcat(Msg,"{FFFFFF}For donators {FFDD00}/dcmds\n");
    
strcat(Msg,"{FFFFFF} Type {FFDD00}/changeteam {FFFFFF}to change your team\n");
    
strcat(Msg,"{FFFFF}To sell stealed jetpack type {FFDD00}/selljp\n");
    
strcat(Msg,"{FFFFFF}Type {FFDD00}/derby {FFFFFF}to join event\n");
    
strcat(Msg,"{FFFFFF}/stopanim {FFDD00}to stop animation");
    
format(Comandos ,sizeof(Comandos), "comands");
    
ShowPlayerDialog(playerid123DIALOG_STYLE_MSGBOXComandosMsg"Fechar""");
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)