goku: No.
To split strings, like your trying to do, use this stock.
Code:
stock ExplodeString( p_szOutput[][], p_nMax, p_nSize, p_szInput[], p_szDelimiter ) { // Function by xeroblood
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
}
You can use it like this:
Code:
new string[] = "STEAM%STEAM%STEAM";
new steamid[3][32]; // This will be all 3 steam ids split from the string.
ExplodeString(steamid, 2, 31, string, '%');
// variable 'steamid' now contains all steamids in the first dimension (steamid[0], steamid[1], steamid[2]).
You can kick them, continuing on the code above, like this:
Code:
new i;
for (i = 0; i < 2; i++)
server_cmd("kick ^"%s^" ^"You were kicked due to your steamid.^"", steamid[i]);
Let me know if you have any compile time errors.
__________________