Compiler bug? - 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: Compiler bug? (
/showthread.php?tid=418882)
Compiler bug? -
Misiur - 26.02.2013
Compiles:
pawn Код:
stock Test(Text:a, tag = tagof a) {
switch(tag) {
case (0):
printf("SRSLY");
case ( tagof( Text: ) ):
printf("SRSLY");
default:
printf("SRSLY");
}
return 1;
}
Crashes:
pawn Код:
stock Test(Text:a, tag = tagof a) {
switch(tag) {
case (0):
{
printf("SRSLY");
}
case ( tagof( Text: ) ):
{
printf("SRSLY");
}
default:
{
printf("SRSLY");
}
}
return 1;
}
Any ideas?
Re: Compiler bug? -
LarzI - 26.02.2013
I have no idea why, but why even care? I mean, the above code is just as tidy (imo) and it works - I don't really see the big deal.