Problem with my friend code
#1

Hi,this topic isnt for me,my friend got a code problem

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
      if(strcmp(cmdtext,"/kill",true))
      SetPlayerHealth(playerid, 0);
      SendClientMessage(playerid, COLOR_RED, "Muori.");

      return 1;

      if(strcmp(cmdtext,"/heal",true))
      SetPlayerHealth(playerid, 100);
      SendClientMessage(playerid, COLOR_RED, "Vita ripristinata.");

      return 1;

      if(strcmp(cmdtext,"/armor",true))
      SetPlayerArmour(playerid, 100);
      SendClientMessage(playerid, COLOR_GREEN, "Armatura gratis.");
      return 1;

      return 0;
}
What he done wrong?
Reply


Messages In This Thread
Problem with my friend code - by Face9000 - 19.12.2010, 22:01
Re: Problem with my friend code - by Rafa - 19.12.2010, 22:04
Re: Problem with my friend code - by Face9000 - 19.12.2010, 22:06
Re: Problem with my friend code - by XePloiT - 19.12.2010, 22:07
Re: Problem with my friend code - by Face9000 - 19.12.2010, 22:08
Re: Problem with my friend code - by XePloiT - 19.12.2010, 22:09
Re: Problem with my friend code - by Rafa - 19.12.2010, 22:10
Re: Problem with my friend code - by admantis - 19.12.2010, 22:22
Re: Problem with my friend code - by Face9000 - 19.12.2010, 22:28
Re: Problem with my friend code - by Manuwar - 27.02.2011, 01:19

Forum Jump:


Users browsing this thread: 7 Guest(s)