SA-MP Forums Archive
Scripting problem..[warning] - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Scripting problem..[warning] (/showthread.php?tid=194738)



Scripting problem..[warning] - multinfs - 30.11.2010

i get a warning when i compile my gamemode and cant figure out whats wrong..(i know you dont rly care about warnings but i want a warning free gamemode)
Код:
warning 201: redefinition of constant/macro (symbol "isnull(%1)")
this is what is on that line:
Код:
#define isnull(%1) \
	((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
please help.


Re: Scripting problem..[warning] - [SU]Balli - 30.11.2010

uhm, i guess isnull is already defined somewhere?


Re: Scripting problem..[warning] - multinfs - 01.12.2010

no cuz if i remove that 4 errors come up


Re: Scripting problem..[warning] - Scenario - 01.12.2010

Why don't you show us those 4 errors? Perhaps we could help. We will also need the lines of code which the errors are occurring on.


Re: Scripting problem..[warning] - Jochemd - 01.12.2010

Check your includes. Probably there is a isnull define in one of them.


Re: Scripting problem..[warning] - multinfs - 01.12.2010

well oke, this warning comes when i compile: warning 201: redefinition of constant/macro (symbol "isnull(%1)")
and this error if i remove the isnull thingy(it was only 1 error this time :O): error 049: invalid line continuation


Re: Scripting problem..[warning] - Scenario - 01.12.2010

Quote:
Originally Posted by multinfs
Посмотреть сообщение
well oke, this warning comes when i compile: warning 201: redefinition of constant/macro (symbol "isnull(%1)")
and this error if i remove the isnull thingy(it was only 1 error this time :O): error 049: invalid line continuation
Will you post the line of code the error is actually occurring on?


Re: Scripting problem..[warning] - multinfs - 02.12.2010

WHAT THE?! the error occured on that line: ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1])))) but i had it commented, but now when i removed it the warning disappeared! :O