Using tagof in switch statement crashes compiler - 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: Using tagof in switch statement crashes compiler (
/showthread.php?tid=459355)
Using tagof in switch statement crashes compiler -
Scottas - 22.08.2013
I have strange issue, here is code:
pawn Код:
main()
{
new tag = tagof(Float:);
new a;
switch(tag)
{
case (tagof(Float:)):
{
print("ok");
}
case (tagof(bool:)):
{
print("okkkk");
}
}
}
Compiler just crashes when trying to compile this code. Variable assignement works great, but when I use tagof after 'case' it stops working. Simple 'if' statement with tagof also works great.
Re: Using tagof in switch statement crashes compiler -
Scottas - 22.08.2013
wow, thanks