SA-MP Forums Archive
Dialog Error - 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: Dialog Error (/showthread.php?tid=516371)



Dialog Error - Team_PRO - 31.05.2014

Код:
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(700) : error 075: input line too long (after substitutions)
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(701) : error 037: invalid string (possibly non-terminated string)
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(701) : error 017: undefined symbol "Level"
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(701) : warning 215: expression has no effect
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(701) : error 001: expected token: ";", but found ":"
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(701) : fatal error 107: too many error messages on one line

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


5 Errors.
Line:

Код:
CMD:acmds(playerid,params[])
{
	ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,"Admin Commands:","Level 1: /aduty /announce /cc /asay /arepair /jetpack /kick /getip /arepair /warn /lspecoff /lspec\nLevel 2: /explode /slap /ban /freeze /unfreeze /get /goto /mute /unmute /addnos /acar /abike /aheli /aboat /weaps\nLevel 3: /tmenu /poweron[off] /aweaps /setpowerjump /giveweapon /resetweapon /givemoney /superman\nLevel 4: /tmenu /poweron[off] /aweaps /setpowerjump /giveweapon /resetweapon /givemoney /superman\nLevel 5: /setskin /hearnear /freezenear /unfreezenear /healall /armourall\nLevel 6: /akill /setlevel /gmx","Close","");
}



Re: Dialog Error - Eth - 31.05.2014

it means that the line is too long, you can fix it by doing an other line after DIALOG_STYLE_MSGBOX like this one:
pawn Код:
CMD:acmds(playerid,params[])
{
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,
"Admin Commands:",
"Level 1: /aduty /announce /cc /asay /arepair /jetpack /kick /getip /arepair /warn /lspecoff /lspec\nLevel 2: /explode /slap /ban /freeze /unfreeze /get /goto /mute /unmute /addnos /acar /abike /aheli /aboat /weaps\nLevel 3: /tmenu /poweron[off] /aweaps /setpowerjump /giveweapon /resetweapon /givemoney /superman\nLevel 4: /tmenu /poweron[off] /aweaps /setpowerjump /giveweapon /resetweapon /givemoney /superman\nLevel 5: /setskin /hearnear /freezenear /unfreezenear /healall /armourall\nLevel 6: /akill /setlevel /gmx","Close","");
}



Re: Dialog Error - Team_PRO - 31.05.2014

Quote:
Originally Posted by Eth
Посмотреть сообщение
it means that the line is too long, you can fix it by doing an other line after DIALOG_STYLE_MSGBOX like this one:
pawn Код:
CMD:acmds(playerid,params[])
{
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,
"Admin Commands:",
"Level 1: /aduty /announce /cc /asay /arepair /jetpack /kick /getip /arepair /warn /lspecoff /lspec\nLevel 2: /explode /slap /ban /freeze /unfreeze /get /goto /mute /unmute /addnos /acar /abike /aheli /aboat /weaps\nLevel 3: /tmenu /poweron[off] /aweaps /setpowerjump /giveweapon /resetweapon /givemoney /superman\nLevel 4: /tmenu /poweron[off] /aweaps /setpowerjump /giveweapon /resetweapon /givemoney /superman\nLevel 5: /setskin /hearnear /freezenear /unfreezenear /healall /armourall\nLevel 6: /akill /setlevel /gmx","Close","");
}
Код:
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(701) : error 075: input line too long (after substitutions)
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(702) : error 017: undefined symbol "Level"
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(702) : warning 215: expression has no effect
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(702) : error 001: expected token: ";", but found ":"
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(702) : error 029: invalid expression, assumed zero
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(702) : fatal error 107: too many error messages on one line

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


5 Errors.



Re: Dialog Error - Eth - 31.05.2014

show me line 701


Re: Dialog Error - Team_PRO - 31.05.2014

Quote:
Originally Posted by Eth
Посмотреть сообщение
show me line 701
Код:
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,
and line 702

Код:
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(702) : error 017: undefined symbol "Level"
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(702) : warning 215: expression has no effect
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(702) : error 001: expected token: ";", but found ":"
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(702) : error 029: invalid expression, assumed zero
C:\Users\Matt\Desktop\SAMP@\filterscript\register1.pwn(702) : fatal error 107: too many error messages on one line
Код:
"Admin Commands:","Level 1: /aduty /announce /cc /asay /arepair /jetpack /kick /getip /arepair /warn /lspecoff /lspec\nLevel 2: /explode /slap /ban /freeze /unfreeze /get /goto /mute /unmute /addnos /acar /abike /aheli /aboat /weaps\nLevel 3: /tmenu /poweron[off] /aweaps /setpowerjump /giveweapon /resetweapon /givemoney /superman\nLevel 4: /tmenu /poweron[off] /aweaps /setpowerjump /giveweapon /resetweapon /givemoney /superman\nLevel 5: /setskin /hearnear /freezenear /unfreezenear /healall /armourall\nLevel 6: /akill /setlevel /gmx","Close","");



Re: Dialog Error - Team_PRO - 31.05.2014

help anybody


Re: Dialog Error - SilentSoul - 31.05.2014

I have tried this codes for you and worked fine for me,Try to move your codes somewhere else in your script also add return true to avoid unkown command error.
pawn Код:
CMD:aacmds(playerid,params[])
{
    ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,"Admin Commands:","Level 1: /aduty /announce /cc /asay /arepair /jetpack /kick /getip /arepair /warn /lspecoff /lspec\nLevel 2: /explode /slap /ban /freeze /unfreeze /get /goto /mute /unmute /addnos /acar /abike /aheli /aboat /weaps\nLevel 3: /tmenu /poweron[off] /aweaps /setpowerjump /giveweapon /resetweapon /givemoney /superman\nLevel 4: /tmenu /poweron[off] /aweaps /setpowerjump /giveweapon /resetweapon /givemoney /superman\nLevel 5: /setskin /hearnear /freezenear /unfreezenear /healall /armourall\nLevel 6: /akill /setlevel /gmx","Close","");
    return 1;
}
If this didn't work, you should use Strcat


Re: Dialog Error - Team_PRO - 31.05.2014

never mind i fixed it by doing it seperately.