Raised This Month: $ Target: $400
 0% 

[CSGO] Replace String dosen't work...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
cristian20042
AlliedModders Donor
Join Date: Jun 2016
Location: Romania
Old 01-08-2017 , 09:06   [CSGO] Replace String dosen't work...
Reply With Quote #1

Hello ! The replacestring dosen't work... here is my string :

PHP Code:
public Action:SayHook(client, const String:command[], args)  
{    
    new 
String:text[192];  
    
GetCmdArgString(textsizeof(text));  

    new 
startidx 0;  
    if (
text[0] == '"'){  
        
startidx 1;  

        new 
len strlen(text);  
        if (
text[len-1] == '"') {  
            
text[len-1] = '\0';  
        }  
    }  

    if(
StrContains(text[startidx], "sound"false)!=-1){  
        
EmitSoundToAllAny("misc/soundtest.mp3");
        
ReplaceString(textsizeof(text), "sound""SOUND"false);
    }

I tried with the default of case sensitive true but it dosen't work.. HELP !

Last edited by cristian20042; 01-08-2017 at 09:07.
cristian20042 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode