help with error rep+
#1

Код:
#define DIALOG_RULES 11111
#define DIALOG_CMDS 22222
#define DIALOG_HELP 33333
#define DIALOG_DCMDS 44444
Код:
CMD:help(playerid,params[])
{
        ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"Help:","-This a DM server, you have to help your team mates\nyour main objective is to defend desert airport and capture it and\nto take down your opposite team and capture thier zones, for more\nhelp use /cmds, also to know the rules use /rules, if you\nneed admin assistance use /helpme, /admins.\nIf you catch a hacker/rulebreaker don't mention it on main\nchat use /report [ID] [Reason] and let the staff team handle\nthe situation","OK","");
        return 1;
}
CMD:cmds(playerid,params[])
{
        ShowPlayerDialog(playerid,DIALOG_CMDS,DIALOG_STYLE_MSGBOX,"Commands:","/register, /login,/help, /cmds,/spree,/shop,/w\nHelp use /cmds, also to know the rules use /rules, if you\nneed admin use /admins. need vips use /vips.\nFor animations type /animations\nDuel:/duel [id] [weapon] [price]\nDuel:/acceptduel\nDuel:/declineduel\nfor donators /dcmds","OK","");
        return 1;
}
CMD:rules(playerid,params[])
{
        ShowPlayerDialog(playerid,DIALOG_RULES,DIALOG_STYLE_MSGBOX,"Rules:","-Respect your enemies and play with honor.\n-No insulting no swearing.\n-Team attacking and team killing isn't allowed!\n-Using hacks will lead to a direct ban.\n-Ban evading will lead to a perment ban.\n-Respect the staff team and obey them.","OK","");
        return 1;
}









Код:
pwn(12514) : error 075: input line too long (after substitutions)
pwn(12515) : error 037: invalid string (possibly non-terminated string)
pwn(12516) : warning 217: loose indentation
pwn(12516) : warning 215: expression has no effect
pwn(12516) : error 001: expected token: ";", but found ")"
pwn(12516) : error 029: invalid expression, assumed zero
pwn(12516) : warning 215: expression has no effect
pwn(12517) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
HELP
Reply
#2

Which lines are which?
Reply
#3

Quote:

#include <a_samp>
#include <ZCMD>

#define DIALOG_RULES 11111
#define DIALOG_CMDS 22222
#define DIALOG_HELP 33333
#define DIALOG_DCMDS 44444

CMD:help(playerid,params[])
{
ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE _MSGBOX,"Help:","-This a DM server, you have to help your team mates\nyour main objective is to defend desert airport and capture it and\nto take down your opposite team and capture thier zones, for more\nhelp use /cmds, also to know the rules use /rules, if you\nneed admin assistance use /helpme, /admins.\nIf you catch a hacker/rulebreaker don't mention it on main\nchat use /report [ID] [Reason] and let the staff team handle\nthe situation","OK","");
return 1;
}
CMD:cmds(playerid,params[])
{
ShowPlayerDialog(playerid,DIALOG_CMDS,DIALOG_STYLE _MSGBOX,"Commands:","/register, /login,/help, /cmds,/spree,/shop,/w\nHelp use /cmds, also to know the rules use /rules, if you\nneed admin use /admins. need vips use /vips.\nFor animations type /animations\nDuel:/duel [id] [weapon] [price]\nDuel:/acceptduel\nDuel:/declineduel\nfor donators /dcmds","OK","");
return 1;
}
CMD:rules(playerid,params[])
{
ShowPlayerDialog(playerid,DIALOG_RULES,DIALOG_STYL E_MSGBOX,"Rules:","-Respect your enemies and play with honor.\n-No insulting no swearing.\n-Team attacking and team killing isn't allowed!\n-Using hacks will lead to a direct ban.\n-Ban evading will lead to a perment ban.\n-Respect the staff team and obey them.","OK","");
return 1;
}

Only download ZCMD.inc
Reply
#4

The input line is too long. PAWN compiler does not support such long lines - the number of characters in one line is limited. Try this compiler: https://sampforum.blast.hk/showthread.php?pid=2768123#pid2768123 it fixes this problem (actually it just increases the limit). Direct download: http://www.mediafire.com/?jqz4785ym821g5x just replace pawnc.dll and pawncc.exe in pawno folder. ZCMD uses #define directive for command definitions and preprocessor treates everything after #define as a single line.

OR

You can define your string before:
new long_string[] = "bla bla bla...";
...
CMD:command(playerid,params[])
{
ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE _MSGBOX,"Help:",long_string,"OK","");
return 1;
}
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=336102
Reply
#6

Do you have ZCMD?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)