Help With a Dialog
#1

Hey ,my problem is : i can't put than 6 lines in the MSGBOX Dialog , how to fix it ? thanks
Reply
#2

You can concatenate strings.
Reply
#3

I Mean , whene \nOther stuffs i can not add more than 6 if i do , i get 4 errors like : Minigun isn't ..; someting like that . i hope you help me
Reply
#4

please show us code..i might help you if i see code..
Reply
#5

ok here is the command ::
pawn Код:
dcmd_vip(playerid, params[])
{
#pragma unused params
if(Vip[playerid] == 0) return SendClientMessage(playerid, COLOR_CERVENA, "  [!] You're not VIP !");
ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,"{FF0000}VIP Help","here is list of commands for all vip players:\n{DDD100}/vskin {FFFFFF}- change your skin to the choosen id\n{DDD100}/vnick {FFFFFF}- changes your color to special VIP color\n{DDD100}/vbox {FFFFFF}- special vip command spawns a box infront of you\n{DDD100}/vrbox {FFFFFF}- to remove the spawned box\n{DDD100}/vmob {FFFFFF}- to spawn a baril\n{DDD100}/vrmob {FFFFFF}- to remove the baril\n{DDD100}/vother {FFFFFF}- i add here other stuff and it get me errors ","OK","");
return 1;
}
Errors:
Код:
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\TEST.pwn(936) : warning 217: loose indentation
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\TEST.pwn(1629) : error 075: input line too long (after substitutions)
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\TEST.pwn(1630) : error 037: invalid string (possibly non-terminated string)
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\TEST.pwn(1630) : error 017: undefined symbol "here"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\TEST.pwn(1630) : error 017: undefined symbol "is"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\TEST.pwn(1630) : fatal error 107: too many error messages on one line

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


5 Errors.
whene i remove the last one it works....
Reply
#6

Edit: Look my other post!
Reply
#7

pawn Код:
new sz_msg[ 512 ];
    strcat( sz_msg, "here is list of commands for all vip players:\n{DDD100}/vskin {FFFFFF}- change your skin to the choosen id\n{DDD100}/vnick {FFFFFF}- changes your color to special VIP color\n{DDD100}/vbox {FFFFFF}- special vip command spawns a box " );
    strcat( sz_msg, "infront of you\n{DDD100}/vrbox {FFFFFF}- to remove the spawned box\n{DDD100}/vmob {FFFFFF}- to spawn a baril\n{DDD100}/vrmob {FFFFFF}- to remove the baril\n{DDD100}/vother {FFFFFF}- i add here other stuff and it get me errors" );
    ShowPlayerDialog( playerid, 9, DIALOG_STYLE_MSGBOX, "{FF0000}VIP Help", sz_msg, "OK", "" );
Reply
#8

Thank you a lot all !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)