SA-MP Forums Archive
Got some errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Got some errors (/showthread.php?tid=647712)



Got some errors - Filbert - 09.01.2018

Код:
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;




Re: Got some errors - XavierJ - 09.01.2018

Maybe remove the #pargma?


Re: Got some errors - Filbert - 09.01.2018

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


Re: Got some errors - Misiur - 09.01.2018

How is SVTDIALOG defined?


Re: Got some errors - Filbert - 09.01.2018

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



Re: Got some errors - Misiur - 09.01.2018

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


Re: Got some errors - Filbert - 09.01.2018

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+