Got some errors
#1

Код:
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
PHP код:
CMD:svt(playeridparams[])
{
    
#pragma unused params
    
ShowPlayerDialog(playeridSVTDIALOGDIALOG_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;

Reply
#2

Maybe remove the #pargma?
Reply
#3

Quote:
Originally Posted by XavierJ
Посмотреть сообщение
Maybe remove the #pargma?
Same errors
Reply
#4

How is SVTDIALOG defined?
Reply
#5

Quote:
Originally Posted by Misiur
Посмотреть сообщение
How is SVTDIALOG defined?
PHP код:
#define SVTDIALOG 
Reply
#6

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 Код:
enum
{
    DIALOG_LOGIN,
    DIALOG_WELCOME,
    DIALOG_WEAPONS
}
 
// Alternatively, using macros:
#define DIALOG_LOGIN 1
#define DIALOG_WELCOME 2
#define DIALOG_WEAPONS 3
or consts, but that's not super important
Reply
#7

Quote:
Originally Posted by Misiur
Посмотреть сообщение
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 Код:
enum
{
    DIALOG_LOGIN,
    DIALOG_WELCOME,
    DIALOG_WEAPONS
}
 
// Alternatively, using macros:
#define DIALOG_LOGIN 1
#define DIALOG_WELCOME 2
#define DIALOG_WEAPONS 3
or consts, but that's not super important
PHP код:
#define SVTDIALOG   2 
No errors now. Thank you.
REP+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)