tagof - compiler crash - 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: tagof - compiler crash (
/showthread.php?tid=576893)
tagof - compiler crash -
Yashas - 07.06.2015
Код:
if(TagOf_param1 == (tagof(_:)))
{
if(TagOf_param2 == (tagof(_:)))
{
if(param1 == -1)
{
//Normal Constructor
}
else
{
//Fill Constructor
}
}
else
{
//Invalid
}
}
if(TagOf_param1 == (tagof(iterator:))) //NO ELSE HERE
{
if(TagOf_param2 == (tagof(iterator:)))
{
//Range Constructor
}
else
{
//Invalid
}
}
else if(TagOf_param1 == (tagof(list:)))
{
//Copy Constructor
}
else
{
//Invalid
}
that works but this doesn't
Код:
if(TagOf_param1 == (tagof(_:)))
{
if(TagOf_param2 == (tagof(_:)))
{
if(param1 == -1)
{
//Normal Constructor
}
else
{
//Fill Constructor
}
}
else
{
//Invalid
}
}
else if(TagOf_param1 == (tagof(iterator:))) //ELSE HERE
{
if(TagOf_param2 == (tagof(iterator:)))
{
//Range Constructor
}
else
{
//Invalid
}
}
else if(TagOf_param1 == (tagof(list:)))
{
//Copy Constructor
}
else
{
//Invalid
}
If I use else...if it doesn't work