[HELP] One thing i dont get it -
AK47317 - 30.04.2011
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.
Re: [HELP] One thing i dont get it - Max_Coldheart - 30.04.2011
Maybe because the code identation is shit?
Re: [HELP] One thing i dont get it -
AK47317 - 30.04.2011
not exactly i try the same but its the same..
Re: [HELP] One thing i dont get it - Max_Coldheart - 30.04.2011
pawno usually goes to 'not responding' when it gets over 25 errors. Maybe there is an unmatched closing bracket?
Re: [HELP] One thing i dont get it -
AK47317 - 30.04.2011
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..
Re: [HELP] One thing i dont get it -
AK47317 - 30.04.2011
so the "\" thingy needed to?
Re: [HELP] One thing i dont get it -
KoczkaHUN - 01.05.2011
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
Re: [HELP] One thing i dont get it -
MadeMan - 01.05.2011
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" , "" ) ;
}
Re: [HELP] One thing i dont get it -
Sinner - 01.05.2011
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
Re: [HELP] One thing i dont get it -
AK47317 - 01.05.2011
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!!!!