Help With a Dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help With a Dialog (
/showthread.php?tid=320521)
Help With a Dialog -
ServerScripter - 23.02.2012
Hey ,my problem is : i can't put than 6 lines in the MSGBOX Dialog , how to fix it ? thanks
Re: Help With a Dialog -
Stylock - 23.02.2012
You can concatenate strings.
Re: Help With a Dialog -
ServerScripter - 24.02.2012
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
Re: Help With a Dialog -
Dan_Barocu - 24.02.2012
please show us code..i might help you if i see code..
Re: Help With a Dialog -
ServerScripter - 24.02.2012
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....
Re: Help With a Dialog -
Konstantinos - 24.02.2012
Edit: Look my other post!
Re: Help With a Dialog -
Konstantinos - 24.02.2012
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", "" );
Re: Help With a Dialog -
ServerScripter - 24.02.2012
Thank you a lot all !