SA-MP Forums Archive
Checking type of ENUM variable - 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: Checking type of ENUM variable (/showthread.php?tid=441832)



Checking type of ENUM variable - Swimor - 04.06.2013

Checking type of ENUM variable

Here is my code:
Code:
Код:
if(tagof(g_ServerInfo[E_SERVER_DATA:5]) == tagof(Float:))
I can't see any problem here but here is the error:
Quote:

X(965) : error 001: expected token: "]", but found "-label-"
X(965) : warning 221: label name "E_SERVER_DATA" shadows tag name
X(965) : warning 215: expression has no effect
X(965) : error 001: expected token: ";", but found "]"

What is the problem?


Re: Checking type of ENUM variable - Pottus - 04.06.2013

I don't see the purpose of this check it seems absolutely useless.