Error(3)
#1

Hello, everyone.I have a some error.Please little help.Already thanks.

(1829) : error 010: invalid function or declaration
(1831) : error 010: invalid function or declaration
(1836) : error 010: invalid function or declaration



Код:
if(strcmp(cmd,"/animler",true)==0)
	{
        if(IsPlayerConnected(playerid))
	    {
        SendClientMessage(playerid,COLOR_RED," Animasyonlar:");
        SendClientMessage(playerid,COLOR_WHITE,"/fall - /aim - /elsalla - /crossarms - /yaslan - /sit - /handsup");
	}
		return 1;
	}
Reply
#2

Quote:
Originally Posted by razol
Посмотреть сообщение
Hello, everyone.I have a some error.Please little help.Already thanks.

(1829) : error 010: invalid function or declaration
(1831) : error 010: invalid function or declaration
(1836) : error 010: invalid function or declaration



Код:
if(strcmp(cmd,"/animler",true)==0)
	{
        if(IsPlayerConnected(playerid))
	    {
        SendClientMessage(playerid,COLOR_RED," Animasyonlar:");
        SendClientMessage(playerid,COLOR_WHITE,"/fall - /aim - /elsalla - /crossarms - /yaslan - /sit - /handsup");
	}
		return 1;
	}
1 - Indent your code
2 - Are you sure the error is here?? I can't find any error here

pawn Код:
if(strcmp(cmd,"/animler",true)==0)
{
    if(IsPlayerConnected(playerid))
    {
        SendClientMessage(playerid, COLOR_RED, " Animasyonlar:");
        SendClientMessage(playerid, COLOR_WHITE, "/fall - /aim - /elsalla - /crossarms - /yaslan - /sit - /handsup");
    }
    return 1;
}
The number in the ()s in the compiler output is the line number.

(1829) : error 010: invalid function or declaration
(1831) : error 010: invalid function or declaration
(1836) : error 010: invalid function or declaration

The error lines are 1829, 1831 and 1836.

Post them here
Reply
#3

Iґam sure, error is here.

1829:
if(strcmp(cmd,"/animler",true)==0)

1831:
if(IsPlayerConnected(playerid))

1836:
return 1;
Reply
#4

Make sure that piece of code is really between the opening and closing curly brackets of OnPlayerCommandText.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)