Vor Monaten einmal diesen stock: Kaliber
stock SCM(playerid, color, fstring[], {Float, _}:...) {
new n = numargs() * 4;
if (n == 3 * 4) return SendClientMessage(playerid, color, fstring);
new message[128],arg_start,arg_end,i = 0;
#emit CONST.pri fstring
#emit ADD.C 0x4
#emit STOR.S.pri arg_start
#emit LOAD.S.pri n
#emit ADD.C 0x8
#emit STOR.S.pri arg_end
for (i = arg_end; i >= arg_start; i -= 4) {
#emit LCTRL 5
#emit LOAD.S.alt i
#emit ADD
#emit LOAD.I
#emit PUSH.pri
}
#emit PUSH.S fstring
#emit PUSH.C 128
#emit PUSH.ADR message
#emit PUSH.S n
#emit SYSREQ.C format
i = n / 4 + 1;
while (--i >= 0) {
#emit STACK 0x4
}
return SendClientMessage(playerid, color, message);
}
Link zum Thread: Stock Frage/Problem Hilfesuchen bei Umsetzung