[HELP] One thing i dont get it
#1

pawn Код:
case DIALOG_HELP: {
            format ( str , sizeof ( str ) , ""YELLOW"Welcome to "RED"Awesome Stunter "YELLOW"server. In here you can "RED"stunt "YELLOW"every where you want.\n\
                                            "
YELLOW"But, "RED"You can't kill "YELLOW"other players outside "RED"Death Match Zone. "YELLOW"Awesome Stunter crew\n\
                            "
RED"update "YELLOW"this server every month. More "RED"feature "YELLOW"will update on this server. So stay "RED"active.\n\
                            \n\
                                            "
YELLOW"For more details of server commands, type "RED"/cmds or /commands." ) ;

            ShowPlayerDialog ( playerid , DIALOG_HELP , DIALOG_STYLE_MSGBOX , iTitle , str , "Submit" , "" ) ;
        }
this code make me crazy, its make my pawno not responding i don't know why its doesnt respond correctly.. maybe you guys can make it respond as usual.
Reply
#2

Maybe because the code identation is shit?
Reply
#3

not exactly i try the same but its the same..
Reply
#4

pawno usually goes to 'not responding' when it gets over 25 errors. Maybe there is an unmatched closing bracket?
Reply
#5

Quote:
Originally Posted by Max_Coldheart
Посмотреть сообщение
pawno usually goes to 'not responding' when it gets over 25 errors. Maybe there is an unmatched closing bracket?
lmao i dont have any error and i close every file..
Reply
#6

so the "\" thingy needed to?
Reply
#7

my pawno compiler crashed when I used a define like #define MYSTR1 "Fuck you Billy!" and I wanted to use it in "format" and it just crashed
Reply
#8

Try this

pawn Код:
case DIALOG_HELP:
{
    format ( str , sizeof ( str ) , YELLOW"Welcome to "RED"Awesome Stunter "YELLOW"server. In here you can "RED"stunt "YELLOW"every where you want.\n");
    format ( str , sizeof ( str ) , "%s"YELLOW"But, "RED"You can't kill "YELLOW"other players outside "RED"Death Match Zone. "YELLOW"Awesome Stunter crew\n", str);
    format ( str , sizeof ( str ) , "%s"RED"update "YELLOW"this server every month. More "RED"feature "YELLOW"will update on this server. So stay "RED"active.\n", str);
    format ( str , sizeof ( str ) , "%s\n"YELLOW"For more details of server commands, type "RED"/cmds or /commands.", str);
    ShowPlayerDialog ( playerid , DIALOG_HELP , DIALOG_STYLE_MSGBOX , iTitle , str , "Submit" , "" ) ;
}
Reply
#9

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Try this

pawn Код:
case DIALOG_HELP:
{
    format ( str , sizeof ( str ) , YELLOW"Welcome to "RED"Awesome Stunter "YELLOW"server. In here you can "RED"stunt "YELLOW"every where you want.\n");
    format ( str , sizeof ( str ) , "%s"YELLOW"But, "RED"You can't kill "YELLOW"other players outside "RED"Death Match Zone. "YELLOW"Awesome Stunter crew\n", str);
    format ( str , sizeof ( str ) , "%s"RED"update "YELLOW"this server every month. More "RED"feature "YELLOW"will update on this server. So stay "RED"active.\n", str);
    format ( str , sizeof ( str ) , "%s\n"YELLOW"For more details of server commands, type "RED"/cmds or /commands.", str);
    ShowPlayerDialog ( playerid , DIALOG_HELP , DIALOG_STYLE_MSGBOX , iTitle , str , "Submit" , "" ) ;
}
That is a stupid thing to do, since you will format the string 4 times but only output the last one.
I think you should use shorten your string a little, or don't use colours
Reply
#10

Quote:
Originally Posted by ******
Посмотреть сообщение
No, if you look the "%s" adds the previous version of the string on, however this is what "strcat" is designed to do - you don't need "format".
yea...... charming..... Those " strcat " were work very well TY VERY MUCH ****** I LOVE YOU!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)