Whats wrong with this script?
#1

I keep getting errors but i dont see anything wrong with it.

Код:
public OnPlayerCommandText(playerid, cmdtext[])

	   (strcmp("/creds", cmdtext, true, 10) == 0)
	   {
	   SendClientMessage(playerid, 0x000000, "Pilotblaze1/Ryder3939. And **********.com");
	   return 1;
	 }
	 

	if (strcmp("/heal", cmdtext, true, 10) == 0)
	{
        SetPlayerHealth(playerid, 100)
        SendClientMessage(playerid, 0x000000, "You have been healed! You health has been restored to 100");
		return 1;
	 }
	 

    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid, 0);
        SendClientMessageToAll(0x000000, "Someone has commited suicide! Check the right side of your screen to see who it was.");
        SendClientMessage(playerid, 0x000000, "See you in heaven! Oh i just remembered,you commited suicide, you aint goin.");
        return 1;
	}
	
	if (strcmp("/pm", cmdtext, true, 10) == 0)
	{
         SendClientMessage(playerid, COLOR_RED, "Unfortunately, I do not know how to script /pm yet, So your assed out.");
		return 1;
	}
	return 0;
}
Reply


Messages In This Thread
Whats wrong with this script? - by FlightPlay - 27.06.2011, 23:21
Re: Whats wrong with this script? - by Falcon. - 28.06.2011, 01:14
Re: Whats wrong with this script? - by Tee - 28.06.2011, 02:28
Re: Whats wrong with this script? - by [L3th4l] - 28.06.2011, 02:28
Re: Whats wrong with this script? - by [L3th4l] - 28.06.2011, 02:41

Forum Jump:


Users browsing this thread: 1 Guest(s)