08.07.2011, 23:33
My question is, how i can make that some agument can be negligible.
I trying to make fnc 'formatEx' - example of what i trying to make:
BUT! Sometimes I will not use 3 arguments, maybe more or maybe less
SO how i can make that arguments can be negligible? - Example if we use this 'formatEx' fnc in this example:
Ofc it won't work :S
Please, can someone give me some example how to do this ( if you understand me ) :-/
I trying to make fnc 'formatEx' - example of what i trying to make:
pawn Код:
formatEx(playerid, cells, text[], argument1, argument2, argument3)
{
new
string[cells];
format(string, sizeof string, text, argument1, argument2, argument3);
SendClientMessage(playerid, -1, string);
return true;
}
SO how i can make that arguments can be negligible? - Example if we use this 'formatEx' fnc in this example:
pawn Код:
formatEx(playerid, 128, "%s %s %d %d %i %s %d",FNC, FNC, FNC, FNC, FNC, FNC);
Please, can someone give me some example how to do this ( if you understand me ) :-/