SA-MP Forums Archive
Undefined Symbol Error![HELP] - 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: Undefined Symbol Error![HELP] (/showthread.php?tid=576691)



Undefined Symbol Error![HELP] - Ahmeeed - 06.06.2015

Код:
error 017: undefined symbol "ERP_DialogBase"
Here's the line
Код:
enum {
	ERP_BankChoose = ERP_DialogBase +1,



Re: Undefined Symbol Error![HELP] - valych - 06.06.2015

I guess there is no such variable (or whatever) named ERP_DialogBase. Also, it is possible that ERP_DialogBase is defined AFTER your enum. For example:
Код:
enum {
ERP_BankChoose = ERP_DialogBase +1
}

#define ERP_DialogBase 0
To get rid of this error, you should move your enum below the ERP_DialogBase:
Код:
#define ERP_DialogBase 0

enum {
ERP_BankChoose = ERP_DialogBase +1
}