07.06.2011, 03:13
(
Последний раз редактировалось Scenario; 07.06.2011 в 13:06.
)
I have the following stock function.
I am trying to use the function, but the only optional parameter I am looking to use would be "color". Is there a way to use the function without needing to set values for all of the other optional parameters?
EDIT: By the way, I am willing to use a public function if doing such with a stock function is not possible.
EDIT: Thanks to randomkid88 and ******, the problem is now solved!
pawn Код:
stock SendAdminMessage(string[], level = 0, color = COLOR_LIGHTBLUE)
{
foreach(Player, i)
{
if(pInfo[i][pAdminLevel] > 0)
if(pInfo[i][pAdminLevel] > level) SendClientMessage(i, color, string);
}
}
EDIT: By the way, I am willing to use a public function if doing such with a stock function is not possible.
EDIT: Thanks to randomkid88 and ******, the problem is now solved!