Noob Question *In Need Of Help ASAP*
#1

Why doesn't this work:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/Ikky Wikky Medicine *puke*", cmdtext, true, 27) == 0)
	{
		GetPlayerHealth(playerid) == < 99;
		{
		    SendClientMessage(playerid,0xFF0000,"Lies you has full health already!");
		    }
		}
		else
		GetPlayerHealth(playerid) == > 100;
		{
		    SendClientMessage(playerid,0xFF0000,"There ya go nub");
		    SetPlayerHealth(100);
		    GivePlayerMoney(playerid,-1337);
			}
		}
		return 1;
	}
	return 0;
}
Код:
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(94) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(103) : warning 202: number of arguments does not match definition
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(103) : error 029: invalid expression, assumed zero
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(103) : warning 215: expression has no effect
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(109) : warning 202: number of arguments does not match definition
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(109) : error 029: invalid expression, assumed zero
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(109) : warning 217: loose indentation
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(109) : warning 215: expression has no effect
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(112) : warning 202: number of arguments does not match definition
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(116) : error 010: invalid function or declaration
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(118) : error 010: invalid function or declaration
C:\Users\hp\Desktop\Stuff\Server\filterscripts\GettyHealth.pwn(121) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
And ignore the warnings..
And don't troll plox
I want the guy to get full health only if his health is below 100
Reply


Messages In This Thread
Noob Question *In Need Of Help ASAP* - by [DBZ]Ali - 20.12.2010, 18:36
Re: Noob Question *In Need Of Help ASAP* - by blackwave - 20.12.2010, 18:41
Respuesta: Noob Question *In Need Of Help ASAP* - by admantis - 20.12.2010, 18:43
AW: Noob Question *In Need Of Help ASAP* - by [SU]Balli - 20.12.2010, 18:51
Respuesta: AW: Noob Question *In Need Of Help ASAP* - by admantis - 20.12.2010, 18:59
Re: Noob Question *In Need Of Help ASAP* - by blackwave - 20.12.2010, 19:01
Re: Noob Question *In Need Of Help ASAP* - by [DBZ]Ali - 21.12.2010, 10:14

Forum Jump:


Users browsing this thread: 1 Guest(s)