26.09.2017, 18:18
Maybe not really learned as I knew about named parameters, but finally used for something useful:
pawn Код:
#include <a_samp>
main() {}
public OnGameModeInit() {
new a, b, c;
Test(.foo = a, .biz = c);
printf("%d %d %d", a, b, c); // 15 0 45
}
Test(&foo = 0, &bar = 0, &biz = 2)
{
foo = 15;
bar = 25;
biz = 45;
}