Multiple parameters with a single stock function
#5

Quote:
Originally Posted by randomkid88
Посмотреть сообщение
Use named arguments, for example:
pawn Код:
SendAdminMessage("Test Message", .color = COLOR_PURPLE);
Put a "." in front of the argument name. I think this only works as long as all the params have default values, like you have above.
I don't believe adding periods does anything, nor does it help the cause for this thread. The stock function currently on the main page of this thread works just fine, when I input values for the other parameters, even if I only need the 'color' variable.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)