Multiple parameters with a single stock function
#4

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)