Dialog Error
#1

Код:
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","");
}
Reply
#2

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","");
}
Reply
#3

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.
Reply
#4

show me line 701
Reply
#5

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","");
Reply
#6

help anybody
Reply
#7

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
Reply
#8

never mind i fixed it by doing it seperately.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)