Whats the problem
#1

Whereґs the problem here..

Код:
 	if(cmdtext[idx] == "fuck")
	{
 	SendClientMessageToAll(NICESKY,"{ [Global] Megan: First get some hairs on your dick please. }");
 	return 1;
	}
Reply
#2

Use strcmp-function to compare strings or strfind-function to search for a substring in a string.
Reply
#3

Okay tried it BUT,

if(strfind(cmdtext[idx],"fuck",true,0))
{
SendClientMessageToAll(NICESKY,"{ [Global] Megan: First get some hairs on your dick please. }");
return 1;
}

Megan keeps saying her sentence when you DONT say fuck, if you say fuck, nothing happens, just Server: Unknown Command.

Why?
Reply
#4

remove the [idx] after cmdtext
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)