Split a string
#2

I'm no fairy queen when it comes to strings, but you could try something with strmid:
pawn Код:
new string[64],
string2[50];
format(string, sizeof(string), "Hello my name is %s from SA-MP.com!", playername);
strmid(string2, string, 15, sizeof string); //15 instead of 14, so it doesn't copy the space before the name
strdel(string, 14, sizeof string);
Reply


Messages In This Thread
Split a string - by Biesmen - 28.04.2012, 11:35
Re: Split a string - by Hiddos - 28.04.2012, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)