error 010: invalid function or declaration
#1

Why Is Here This Error?
CMD:buyskin(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 207.6219, -104.1593, 1005.257)
{
ShowPlayerDialog(playerid,55,DIALOG_STYLE_INPUT,"S KIN SHOP","Chaweret Skinis ID Romelic Gindat Rom Iyidot. | FASI: $500","Yidva","Gasvla");
}
else
{
SendClientMessage(playerid,0xAA3333AA,"Shen Ar Xar Tansacmlis Magaziashi!");
}
}
return 0;
}
Reply
#2

Extra closing bracket.

Not sure what your indentation is like since you didn't use bbcode code, but I bet you would've noticed instantly if you had your indentation right.

pawn Код:
CMD:buyskin(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 10.0, 207.6219, -104.1593, 1005.257)
    {
        ShowPlayerDialog(playerid,55,DIALOG_STYLE_INPUT,"S KIN SHOP","Chaweret Skinis ID Romelic Gindat Rom Iyidot. | FASI: $500","Yidva","Gasvla");
    }
    else
    {
        SendClientMessage(playerid,0xAA3333AA,"Shen Ar Xar Tansacmlis Magaziashi!");
    }
    return 0;
}
Also, why are you returning 0? That's gonna result in an "Unknown Command" message every time someone uses the command.
Reply
#3

Must be like:-
pawn Код:
CMD:buyskin(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 10.0, 207.6219, -104.1593, 1005.257)
    {
        ShowPlayerDialog(playerid,55,DIALOG_STYLE_INPUT,"S KIN SHOP","Chaweret Skinis ID Romelic Gindat Rom Iyidot. | FASI: $500","Yidva","Gasvla");
    }
    else
    {
        SendClientMessage(playerid,0xAA3333AA,"Shen Ar Xar Tansacmlis Magaziashi!");
    }
    return 0;
}
Reply
#4

Quote:
Originally Posted by ManGoe
Посмотреть сообщение
Must be like:-
pawn Код:
CMD:buyskin(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 10.0, 207.6219, -104.1593, 1005.257)
    {
        ShowPlayerDialog(playerid,55,DIALOG_STYLE_INPUT,"S KIN SHOP","Chaweret Skinis ID Romelic Gindat Rom Iyidot. | FASI: $500","Yidva","Gasvla");
    }
    else
    {
        SendClientMessage(playerid,0xAA3333AA,"Shen Ar Xar Tansacmlis Magaziashi!");
    }
    return 0;
}
Why did you have to exactly copy what Crayder posted already before?
Reply
#5

Quote:
Originally Posted by FreAkeD
Посмотреть сообщение
Why did you have to exactly copy what Crayder posted already before?
Right, it's literally exactly the same...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)