Help with my first command.
#1

Well, not trying to copy and paste everything, and I'm a beginner at this language started learning yesterday.

I get the following errors


PHP код:
C:\Users\Jeannette\Desktop\Windows-Server\pawno\Joks.pwn(101) : error 017undefined symbol "SCM"
C:\Users\Jeannette\Desktop\Windows-Server\pawno\Joks.pwn(103) : warning 217loose indentation
C
:\Users\Jeannette\Desktop\Windows-Server\pawno\Joks.pwn(106) : warning 209: function "zcmd_OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

The command that I'm making is this.

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/healme"cmdtexttrue10) == 0)
    {
    
SetPlayerArmour(150);
    
SetPlayerHealth(150);
    
SCM(playeridCOLOR_PINK"You've refilled your Armour, and health. Goodluck!");
        return 
1;
    } 
Errors that I'm making so I can look back at them and fix them in the future.

If you didn't get a good look at them, or need more information.

Link: http://gyazo.com/e228c4035b72339f1f3526180915dda6
Reply


Messages In This Thread
Help with my first command. - by Goru - 11.07.2012, 14:21
Re: Help with my first command. - by Revo - 11.07.2012, 14:25
Re: Help with my first command. - by RedJohn - 11.07.2012, 14:27
Re: Help with my first command. - by Goru - 11.07.2012, 14:32
Re: Help with my first command. - by RedJohn - 11.07.2012, 14:34
Re: Help with my first command. - by Goru - 11.07.2012, 14:45
Re: Help with my first command. - by Lordzy - 11.07.2012, 14:49
Re: Help with my first command. - by Mark™ - 11.07.2012, 14:50
Re: Help with my first command. - by RedJohn - 11.07.2012, 15:01
Re: Help with my first command. - by Mark™ - 11.07.2012, 15:05

Forum Jump:


Users browsing this thread: 4 Guest(s)