Commands dont work ?!?
#1

Why don't the commands work , when I right a command and it doesn't do anything , and when I write a command , which I don't have in the GM ,it doesn't show the message where the server says that there isn't a command like that ?!?
Reply
#2

Hehe, make sure you have
Код:
return 1;
after every command,

Eg:
Код:
OnPlayerCommandText(playerid,cmdtext)
{
  if(!strcmp(cmdtext,"/kill",5,true))
  {
     SetPlayerHealth(playerid,0.0);
     return 1;
  }
  return 1;
}
Reply
#3

I do
Reply
#4

Did you exit OnPlayerCommandText with a 'return 0'?
Reply
#5

Yes
Reply
#6

Any more ideas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)