08.02.2013, 05:58
I'm not sure how to express what I want correctly, but I hope you'll understand me. In one of stock functions in my gm, there is an argument... Not an integer argument, but array. This array must include titles for textdraw menu, like:
So, when I use this stock function, i must add:
As you can see, vnames is that veriable with array with titles.
But if I don't want to add any title, it gives me an error, that number of arguments does not much the defenition. So, I want to ask you, if there is any way to make this function argument optional? Thanks in advance.
pawn Код:
new vnames[][] =
{
"Planes",
"Helicopters",
"Bikes",
"Cars",
"Boats",
"Specials",
"RC vehicles"
};
pawn Код:
ShowTextDrawMenu(playerid, menuid, "Vehicles spawn",vnames,0x990000AA);
But if I don't want to add any title, it gives me an error, that number of arguments does not much the defenition. So, I want to ask you, if there is any way to make this function argument optional? Thanks in advance.