Replacing with "str..."
#1

Код:
if(strfind(text, ":(", true) != -1 || strfind(text, ":D", true) != -1 || strfind(text, ":P", true) != -1 || strfind(text, "xd", true) != -1 || strfind(text, ":S", true) != -1 || strfind(text, ":/", true) != -1 ||strfind(text, "Admin", true) != -1 || strfind(text, "aod", true) != -1)
 	{

 	}
How do make it: (Example)

I say: "" but will showed all only " " (space).
Will replaced to space... what...

Sorry for bad english.
Reply
#2

bamp?
Reply
#3

Well here is a example..tho it uses strcmp:
pawn Код:
//OnPlayerText
        if(strcmp(text, "haha", true) == 0)
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "%s laughs out loud.", sendername);
            ProxDetector(20.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            return 0;
        }
Reply
#4

That is ProxDetector, you didnt understand me.... Read again first post please.
Reply
#5

Dude? Who cares if thats with the prox? you can just delete that and BINGO! you have a code that if someone types haha it will say *someone laughs out loud. ?

go back to basic scripting
Reply
#6

Use/Search strreplace/str_replace function.
Reply
#7

Quote:
Originally Posted by Picharelo
That is ProxDetector, you didnt understand me.... Read again first post please.
I understood you perfectly..i said that was a example, therefore you would have to modify a tiny part. Common sense!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)