25.07.2012, 15:03
(
Последний раз редактировалось JoBullet; 29.07.2012 в 21:05.
)
Today I learned that this is how you enforce someone implementing function(not public) to return array of exact size:
Of course those work for multiple dimensions too.
This also works for natives:
Код:
forward [128] getMessage(playerid); stock getMessage(playerid) { #pragma unused playerid new msg[128]; return msg; }
Код:
forward [128][1][2] getInfo(); stock getInfo() { new info[128][1][2]; info[0][0][1] = 1; return info; }
Код:
native [128] getClientMessage(playerid);