[HELP]Double Messages
#7

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Fiki
this is functionaly:

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/kill",true) == 0)
{
SetPlayerHealth(playerid, 0);
return 1;
}
return 1;
}

No, it should be like this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/kill", true) == 0)
  {
    SetPlayerHealth(playerid, 0);
    return 1;
  }
  return 0;
}
oppps, yeah this is good i write wrong return
Reply


Messages In This Thread
[HELP]Double Messages - by thecutkiller - 10.01.2010, 12:35
Re: [HELP]Double Messages - by Fiki - 10.01.2010, 12:38
Re: [HELP]Double Messages - by thecutkiller - 10.01.2010, 12:41
Re: [HELP]Double Messages - by Correlli - 10.01.2010, 12:42
Re: [HELP]Double Messages - by thecutkiller - 10.01.2010, 12:47
Re: [HELP]Double Messages - by thecutkiller - 10.01.2010, 12:51
Re: [HELP]Double Messages - by Fiki - 10.01.2010, 13:28

Forum Jump:


Users browsing this thread: 3 Guest(s)