D:\Data\GTA\JTTDM\Gamemodes\JTFR.pwn(39963) : error 029: invalid expression, assumed zero D:\Data\GTA\JTTDM\Gamemodes\JTFR.pwn(39963) : warning 215: expression has no effect D:\Data\GTA\JTTDM\Gamemodes\JTFR.pwn(39963) : warning 215: expression has no effect D:\Data\GTA\JTTDM\Gamemodes\JTFR.pwn(39963) : warning 215: expression has no effect D:\Data\GTA\JTTDM\Gamemodes\JTFR.pwn(39963) : warning 215: expression has no effect D:\Data\GTA\JTTDM\Gamemodes\JTFR.pwn(39963) : warning 215: expression has no effect D:\Data\GTA\JTTDM\Gamemodes\JTFR.pwn(39963) : error 001: expected token: ";", but found ")" D:\Data\GTA\JTTDM\Gamemodes\JTFR.pwn(39963) : error 029: invalid expression, assumed zero D:\Data\GTA\JTTDM\Gamemodes\JTFR.pwn(39963) : fatal error 107: too many error messages on one line
CMD:svt(playerid, params[])
{
#pragma unused params
ShowPlayerDialog(playerid, SVTDIALOG, DIALOG_STYLE_LIST, "JT~SvT", "{FF9900}Terrorist Team\n{4169FF}Counter-Terrorist Team\n\n{FFFFFF}JT~SvT Rules\n\n{FF0000}Leave JT~SvT", "Okay", "Exit"); <====== Line 39963
return 1;
}
#define SVTDIALOG
enum
{
DIALOG_LOGIN,
DIALOG_WELCOME,
DIALOG_WEAPONS
}
// Alternatively, using macros:
#define DIALOG_LOGIN 1
#define DIALOG_WELCOME 2
#define DIALOG_WEAPONS 3
Yup, that's your problem. You need to set SVTDIALOG to be replaced with a (unique) number.
See https://sampwiki.blast.hk/wiki/ShowPlayerDialog - the example code box. You have three options pawn Код:
|
#define SVTDIALOG 2