public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/colors", true)) { ShowPlayerDialog(playerid, colors, DIALOG_STYLE_LIST, "Colors List", "Red\nBlue\nGreen\nYellow\nPink\nPurple\nGrey\nWhite\nOrange\nLime\nNext Page", "Select", "Cancel"); return 1; } return 0; }
C:\Documents and Settings\User\Desktop\Server\filterscripts\tColor.pwn(25) : error 029: invalid expression, assumed zero C:\Documents and Settings\User\Desktop\Server\filterscripts\tColor.pwn(25) : warning 215: expression has no effect C:\Documents and Settings\User\Desktop\Server\filterscripts\tColor.pwn(25) : warning 215: expression has no effect C:\Documents and Settings\User\Desktop\Server\filterscripts\tColor.pwn(25) : warning 215: expression has no effect C:\Documents and Settings\User\Desktop\Server\filterscripts\tColor.pwn(25) : warning 215: expression has no effect C:\Documents and Settings\User\Desktop\Server\filterscripts\tColor.pwn(25) : warning 215: expression has no effect C:\Documents and Settings\User\Desktop\Server\filterscripts\tColor.pwn(25) : error 001: expected token: ";", but found ")" C:\Documents and Settings\User\Desktop\Server\filterscripts\tColor.pwn(25) : error 029: invalid expression, assumed zero C:\Documents and Settings\User\Desktop\Server\filterscripts\tColor.pwn(25) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
#include <a_samp> #include <aColors> #define colors #define colors1 #define colors2 #define colors3
#define DIALOG_COLORS 1
Don't use simple names for defines like that. Do you know what a define does? Use unique names that you know won't get mixed up such as DIALOG_COLORS. You also need to put a number after your define if you want to use this for a dialog.
pawn Код:
|