First thing that came in my mind was:
PHP Code:
public test(id)
{
//MagicNumbers™
new szBuffer[190], szBuffer2[4], len;
for(new i; i < 10; i++)
{
len += formatex(szBuffer2, charsmax(szBuffer2), " %i,", i);
add(szBuffer, charsmax(szBuffer), szBuffer2);
}
szBuffer[len - 1] = ""; // Marked
console_print(id, "%s", szBuffer);
}
But marked string gives me an error 006: must be assigned to an array
Any good way to solve this?
__________________