06.04.2009, 08:03
Use function like this
to get position of "_", and use this position + 1 as string index
pawn Код:
chrfind(string[], chr, start = 0)
{
while (string[start])
if (string[start++] == chr)
return start - 1;
return -1;
}
pawn Код:
new idx = chrfind(playername2, '_') + 1;
printf("%s", playername2[idx]);