Command Error
#1

Well, I'm slowly learning and moving along, although i keep coming across this same error when ever i try to add /etc commands.


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp(cmdtext, "/help", true) == 0)
{
     SendClientMessage(playerid, COLOR_BLUE, "** HELP **");
     SendClientMessage(playerid, COLOR_RED, "** COMMANDS **\n /suicide");
}
if(strcmp(cmdtext, "/error", true) == 0)
{
    SendClientMessage(playerid, COLOR_RED, "** ERROR **");
    return 1;
}
This is the annoying error i keep getting.

pawn Код:
C:\DOCUME~1\SKELLY~1\Desktop\GTASER~1\GAMEMO~1\Untitled.pwn(139) : error 010: invalid function or declaration
C:\DOCUME~1\SKELLY~1\Desktop\GTASER~1\GAMEMO~1\Untitled.pwn(142) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Any help is appreciated.

Thanks.
Reply


Messages In This Thread
Command Error - by keujh - 03.04.2010, 01:21
Re: Command Error - by dracar - 03.04.2010, 01:36
Re: Command Error - by Calgon - 03.04.2010, 01:38
Re: Command Error - by keujh - 03.04.2010, 02:03
Re: Command Error - by keujh - 03.04.2010, 02:05
Re: Command Error - by ScottCFR - 03.04.2010, 03:14
Re: Command Error - by keujh - 03.04.2010, 03:27

Forum Jump:


Users browsing this thread: 5 Guest(s)