SA-MP Forums Archive
Killing the 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: Killing the compiler (/showthread.php?tid=418359)



Killing the compiler - Misiur - 24.02.2013

I somehow managed to kill the compiler

pawn Код:
#include <a_samp>

main() {
    print("Yay");
    Killer("Wut");
}

stock Killer(teh[], size = sizeof teh) {
    new murderer[512];
    if(sizeof murderer < size) return "Damnit";
    return teh;
}
Is there any way around it?


Re: Killing the compiler - Vince - 24.02.2013

I don't think you can return literal strings.


Re: Killing the compiler - Misiur - 24.02.2013

Oh. Well, that was stupid on my part. Thanks