Use Explode function from php ;p
Code:
new string[] = "str1-str2-str3-str4"
new str[4][5], num
explode(string, '-', str[num++], 3, 4)
client_print(0,3, "%s %s %s %s", str[0], str[1, str[2], str[3])
stock explode(const string[],const character,output[][],const maxs,const maxlen){
new iDo = 0,
len = strlen(string),
oLen = 0;
do{
oLen += (1+copyc(output[iDo++],maxlen,string[oLen],character))
}while(oLen < len && iDo < maxs)
}