adding some lines problem
#1

im having a very simple problem, im trying too add some /suicide but i got some errors
this is the 1st command healme
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/heal", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 100);
		return 1;
	}
	return 0;
}
it work but when ill add this stuff it will have error.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/heal", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 100);
		return 1;
	}
		if (strcmp("/suicide", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 0);
		return 1;
	}
	return 0;
}
here the error
Код:
C:\Users\kyle\Desktop\tdm server\gamemodes\Untitled.pwn(149) : warning 217: loose indentation
C:\Users\kyle\Desktop\tdm server\gamemodes\Untitled.pwn(154) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply


Messages In This Thread
adding some lines problem - by KissOfDeath - 01.10.2011, 13:31
Re: adding some lines problem - by Kingunit - 01.10.2011, 13:36
Re: adding some lines problem - by Wesley221 - 01.10.2011, 13:36
Re: adding some lines problem - by Jafet_Macario - 01.10.2011, 13:36
Re: adding some lines problem - by DRIFT_HUNTER - 01.10.2011, 13:37
Re: adding some lines problem - by KissOfDeath - 01.10.2011, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)