Simple code and Pawn Compiler Stopped Working
#1

Hello

if I do that:

PHP Code:
#include <a_samp>
main()
{
}
stock RetornaStringEntreChars(string[], primSubString[], segSubString[], bool ic true)
{
    new 
a;    
    
strfind(stringprimSubStringic);
    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 
strfind(stringprimSubStringic);
    return 
1;

It does that:



does anyone know why?
Reply
#2

pawn Code:
stock RetornaStringEntreChars(string[], primSubString[], segSubString[], bool:ic = true)
{
    new a = strfind(string, primSubString, ic);
    return 1;
}
pawn Code:
bool ic = true
is supposed to be
pawn Code:
bool:ic = true
Reply
#3

Quote:
Originally Posted by MikeEd
View Post
pawn Code:
stock RetornaStringEntreChars(string[], primSubString[], segSubString[], bool:ic = true)
{
    new a = strfind(string, primSubString, ic);
    return 1;
}
pawn Code:
bool ic = true
is supposed to be
pawn Code:
bool:ic = true
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 ":"
Reply
#4

hmm weird, i tried with and without the ":" it crashed without the :
Reply
#5

Quote:
Originally Posted by MikeEd
View Post
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 :}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)