/GodMode Command
#1

here is a command i tried to make it is pretty simple but i don't know how to do it could anyone tell me specificly how to do it? this is what i got

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/GodMode",true)==0)
{

GetPlayerHealth(playerid);
if(health <100)
SetPlayerHealth(playerid,100);
return 1;}
as you can probably see i have tried to make a command when you type /godmode if your health goes below 100 it will set health back to 100 but it doesent work here are the errors

Код:
C:\samp022server.win32\gamemodes\DM.pwn(752) : error 017: undefined symbol "health"
C:\samp022server.win32\gamemodes\DM.pwn(753) : error 017: undefined symbol "health"
C:\samp022server.win32\gamemodes\DM.pwn(763) : error 076: syntax error in the expression, or invalid function call
C:\samp022server.win32\gamemodes\DM.pwn(795) : warning 202: number of arguments does not match definition
C:\samp022server.win32\gamemodes\DM.pwn(796) : error 017: undefined symbol "health"
C:\samp022server.win32\gamemodes\DM.pwn(2156) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply


Messages In This Thread
/GodMode Command - by PinkFloydLover - 17.02.2008, 03:25
Re: /GodMode Command - by yom - 17.02.2008, 04:08
Re: /GodMode Command - by jnorchanian - 17.02.2008, 04:24
Re: /GodMode Command - by PinkFloydLover - 17.02.2008, 04:29
Re: /GodMode Command - by ooscar713 - 14.02.2010, 22:51
Re: /GodMode Command - by owner jacob - 14.02.2010, 22:57
Re: /GodMode Command - by ДitisOnHuora - 15.02.2010, 00:02
Re: /GodMode Command - by [Mr]Fred - 27.04.2010, 14:20
Re: /GodMode Command - by dice7 - 27.04.2010, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)