stock
#5

What I pasted is working fine for me, I tested it.

pawn Код:
stock Message(string[],optionalstring[] = "")
{
    print(string);
    if(!strlen(optionalstring)) print("No value entered for optional string");
    else print(optionalstring);
    return 1;
}
Using

pawn Код:
Message("Hello");
I get no errors or warnings and the same if I use

pawn Код:
Message("Hello","Sir");
There's an optional parameter..?
Reply


Messages In This Thread
stock - by GaGlets(R) - 11.12.2010, 12:15
Re: stock - by The_Gangstas - 11.12.2010, 12:21
Re: stock - by JaTochNietDan - 11.12.2010, 12:23
Re: stock - by GaGlets(R) - 11.12.2010, 14:05
Re: stock - by JaTochNietDan - 11.12.2010, 14:55

Forum Jump:


Users browsing this thread: 1 Guest(s)