[Help]/Help CMD
#1

I made a /help cmd and heres the script:public OnPlayerCommandText(playerid, cmdtext[])
{

if (strcmp("/kill", cmdtext, true, 5) == 0)
{

if(!strcmp(cmdtext,"/help", true))
{
SendClientMessage(playerid, COLOR_SILVER, "[SERVER]:This Server is Currently Under Construction,Help Feauture Will Be Updates ASAP!");
return true;

}
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, COLOR_ORANGE," [!] You Killed Yourself [!]");
return 1;
}
return 0;
}

And it seems that this cmd is Unknown(Recieving the message:[SERVER]:Unknown Command....)Help Please?
Reply
#2

And here is a link in Pastebin:
http://pastebin.com/dd0a73b2
Reply
#3

You're using one command inside of another, that makes no sense and it's not correct.
Reply
#4

OK Ill see whats wrong and edit,if not ill post that i still need help =/
Reply
#5

Damn everything is realy mixed o.O ill need help...
Reply
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/kill", true) == 0)
  {
    SetPlayerHealth(playerid, 0.0);
    SendClientMessage(playerid, COLOR_ORANGE, "[!] You Killed Yourself [!]");
    return 1;
  }
  if(strcmp(cmdtext, "/help", true) == 0)
  {
    SendClientMessage(playerid, COLOR_SILVER, "[SERVER]:This Server is Currently Under Construction,Help Future Will Be Updates ASAP!");
    return 1;
  }
  return 0;
}
Reply
#7

Thank You Don
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)