25.02.2010, 00:37
For example, i may have this:
But what i want is this:
But if string1 and integer1 is not used then it will still work without warning,
PublicFunction("test", 1);
But then if in another part of the script this is used
PublicFunction("test", 1, "test2", 2);
It will work without warning also, i've seen how to do this in the past but i can't remember how to do it.
pawn Код:
public PublicFunction(string[], integer)
pawn Код:
public PublicFunction(string[], integer, string1[], integer1)
PublicFunction("test", 1);
But then if in another part of the script this is used
PublicFunction("test", 1, "test2", 2);
It will work without warning also, i've seen how to do this in the past but i can't remember how to do it.