"SERVER: Unknown command."
#1

Right, so I've read through some threads on the forums about this topic, but I still haven't found an answer.. Here's the script..

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/kill"cmdtexttrue5) == 0)
    {
        
SetPlayerHealth (playerid0);
        
SendClientMessage (playerid0x4D34B3FF"You have killed yourself, idiot.");
    return 
1;
    } 
Doesn't matter what I do, I just keep on getting no message. I've scripted some more commands, and they all have the same problem, or they just say "SERVER: Unknown Command.". I'm a rookie in scripting, and I'm just playing around. I just don't get what I'm doing wrong. Since the rest of my "commands" gets the same message, I'm clueless on what I'm doing wrong. I could post another "command" later on, if needed.. Please help me!
Reply


Messages In This Thread
"SERVER: Unknown command." - by daimon567 - 09.08.2012, 23:33
Re: "SERVER: Unknown command." - by phillip875 - 09.08.2012, 23:36
Re: "SERVER: Unknown command." - by daimon567 - 09.08.2012, 23:36
Re: "SERVER: Unknown command." - by daimon567 - 09.08.2012, 23:38
Re: "SERVER: Unknown command." - by phillip875 - 09.08.2012, 23:38
Re: "SERVER: Unknown command." - by Dubya - 09.08.2012, 23:39
Re: "SERVER: Unknown command." - by FalconX - 09.08.2012, 23:42
Re: "SERVER: Unknown command." - by daimon567 - 09.08.2012, 23:47
Re: "SERVER: Unknown command." - by FalconX - 09.08.2012, 23:53
Re: "SERVER: Unknown command." - by daimon567 - 10.08.2012, 00:08
Re: "SERVER: Unknown command." - by grand.Theft.Otto - 10.08.2012, 00:33
Re: "SERVER: Unknown command." - by daimon567 - 10.08.2012, 00:53

Forum Jump:


Users browsing this thread: 1 Guest(s)