Not performing correctly (Commands)
#10

@SickAttack:

Your function ReplaceString is horrible

Just easy do this:

PHP код:
stock ReplaceString(const search[],const replace[], source[], size=sizeof source//© by Kaliber
{
    new 
i=strfind(source,search),tmp=strlen(search);
    if(
i==-1) return 0;
    for( ; 
i!=-1i=strfind(source,search,false,i+1))
    {
        
strdel(source,i,i+tmp),strins(source,replace,i,size);
    }
    return 
1;

Greekz
Reply


Messages In This Thread
[SOLVED]Not performing correctly (Commands) - by Sime30 - 06.07.2015, 15:25
Re: Not performing correctly (Commands) - by SickAttack - 06.07.2015, 15:39
Re: Not performing correctly (Commands) - by JaydenJason - 06.07.2015, 15:42
Re: Not performing correctly (Commands) - by Sime30 - 06.07.2015, 15:44
Re: Not performing correctly (Commands) - by SickAttack - 06.07.2015, 15:45
Re: Not performing correctly (Commands) - by Sime30 - 06.07.2015, 15:57
Re: Not performing correctly (Commands) - by Sime30 - 06.07.2015, 20:16
Re: Not performing correctly (Commands) - by SickAttack - 06.07.2015, 22:14
Re: Not performing correctly (Commands) - by Sime30 - 06.07.2015, 22:30
AW: Not performing correctly (Commands) - by Kaliber - 06.07.2015, 22:44

Forum Jump:


Users browsing this thread: 1 Guest(s)