nvm
I just used:
Code:
new ExplodedStrings[10][16]
new Count = ExplodeString( ExplodedStrings, 10, 16, g_Data, '^n' )
for(new i=0; i<=Count; i++)
{
log_amx("%s", ExplodedStrings[i])
}
with
Code:
stock ExplodeString( p_szOutput[][], p_nMax, p_nSize, p_szInput[], p_szDelimiter )
{
new nIdx = 0, l = strlen(p_szInput)
new nLen = (1 + copyc( p_szOutput[nIdx], p_nSize, p_szInput, p_szDelimiter ))
while( (nLen < l) && (++nIdx < p_nMax) )
nLen += (1 + copyc( p_szOutput[nIdx], p_nSize, p_szInput[nLen], p_szDelimiter ))
return nIdx
}