Simple code and Pawn Compiler Stopped Working - 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: Simple code and Pawn Compiler Stopped Working (
/showthread.php?tid=538112)
Simple code and Pawn Compiler Stopped Working -
dudaefj - 19.09.2014
Hello
if I do that:
PHP Code:
#include <a_samp>
main()
{
}
stock RetornaStringEntreChars(string[], primSubString[], segSubString[], bool ic = true)
{
new a;
a = strfind(string, primSubString, ic);
return 1;
}
and build with parameters -;+ -\ -(+v -r -d2
it works well
but if I do that:
PHP Code:
#include <a_samp>
main()
{
}
stock RetornaStringEntreChars(string[], primSubString[], segSubString[], bool ic = true)
{
new a = strfind(string, primSubString, ic);
return 1;
}
It does that:
does anyone know why?
Re: Simple code and Pawn Compiler Stopped Working -
MikeEd - 19.09.2014
pawn Code:
stock RetornaStringEntreChars(string[], primSubString[], segSubString[], bool:ic = true)
{
new a = strfind(string, primSubString, ic);
return 1;
}
is supposed to be
Re: Simple code and Pawn Compiler Stopped Working -
dudaefj - 20.09.2014
Quote:
Originally Posted by MikeEd
pawn Code:
stock RetornaStringEntreChars(string[], primSubString[], segSubString[], bool:ic = true) { new a = strfind(string, primSubString, ic); return 1; }
is supposed to be
|
yes, I did it right but I did ctrl+z to post it here and ":" was gone too, fail on post, but it is stopping working anyway with ":"
Re: Simple code and Pawn Compiler Stopped Working -
MikeEd - 20.09.2014
hmm weird, i tried with and without the ":" it crashed without the :
Re: Simple code and Pawn Compiler Stopped Working -
dudaefj - 20.09.2014
Quote:
Originally Posted by MikeEd
hmm weird, i tried with and without the ":" it crashed without the :
|
yeah... you are right...
maybe I messed up on ctrl+z too many times, idk... cuz I've already fixed that ":" on one of tries...
I'm old lol
ok, thank you :}