Convert numbers to text
#5

OnPlayerText():
pawn Код:
new string1[128],string2[128],result[128];
found=strfind(text,"9",true);
if(found>-1)
{
 strmid(string1,text,0,found);
 strmid(string2,text,found+1,128);//+1 is 1 char replaced ("9"). skipping that
 format(result,sizeof(result),"%snine%s",string1,string2);
}
maybe strcat will be faster... if i missed something then excuse me, i cut-n-pasted a few lines from my stringreplacer
Reply


Messages In This Thread
Convert numbers to text - by milanosie - 07.06.2012, 14:14
Re: Convert numbers to text - by Niko_boy - 07.06.2012, 14:17
Re: Convert numbers to text - by Chris1337 - 07.06.2012, 14:19
Re: Convert numbers to text - by Niko_boy - 07.06.2012, 14:21
Re: Convert numbers to text - by Babul - 07.06.2012, 14:22
Re: Convert numbers to text - by Niko_boy - 07.06.2012, 14:38
Re: Convert numbers to text - by milanosie - 07.06.2012, 15:14

Forum Jump:


Users browsing this thread: 1 Guest(s)