28.10.2010, 19:21
How do slipt string like:
string = [EU]AUD398
Then will slipting to "[EU] AUD 398".
string = [EU]AUD398
Then will slipting to "[EU] AUD 398".
This forum requires that you wait 120 seconds between posts. Please try again in 84 seconds. ...
stock split(const string[], string1[], string2[], character, maxsize = strlen(string)+1)
{
format(string1, maxsize, "%s", string);
format(string2, maxsize, "%s", string);
strdel(string1, character+1, strlen(string));
strdel(string2, 0, character+1);
return 1;
}
new string1[3]; //max length (3)
new string1[3]; //max length (3)
split("AUD398", string1, string2, 3);
new string1[4]; //max length (4) new string1[3]; //max length (3) new string1[3]; //max length (3) split("[EU]AUD398", string1, string2, string3, 3);
new string1[4]; //max length (4) new string1[3]; //max length (3) new string1[3]; //max length (3) split(CarInfo[h][cPlate], string1, string2, string3, 3); // ex "[EU]AUD398" SendClientMessage(playerid, COLOR, CarInfo[h][cPlate]); // splitted