function "cmd_vipskin" should return a value
#6

Wait,
Quote:
Originally Posted by Jack_Leslie
Посмотреть сообщение
pawn Код:
CMD:vipskin(playerid, params[])
{
    if(PlayerInfo[playerid][pDonator] >= 1)
    {
        if(IsPlayerInRangeOfPoint(playerid,3.5,-2648.1909, 1397.2834, 906.4609))
        {
             ShowPlayerDialogEx( playerid, DIALOG_3496, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin changes are free here.", "Wear", "Cancel" );
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "   You're not near at the VIP Skin list!!");
    }
    return 1;
}
Quote:
Originally Posted by Zex Tan
Посмотреть сообщение
pawn Код:
CMD:vipskin(playerid, params[])
{
    if(PlayerInfo[playerid][pDonator] >= 1)
    {
        if(IsPlayerInRangeOfPoint(playerid,3.5,-2648.1909, 1397.2834, 906.4609))
        {
             ShowPlayerDialogEx( playerid, DIALOG_3496, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin changes are free here.", "Wear", "Cancel" );
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "   You're not near at the VIP Skin list!!");
    }
    return 1;
}
You added a bracket after return 1; which causes it.
I think if he's not Donator / VIP it will send this kind of message instead of if he's not in the right range of point.
Код:
You're not near at the VIP Skin list!!
Well, i think it's this :-
pawn Код:
CMD:vipskin(playerid, params[])
{
    if(PlayerInfo[playerid][pDonator] >= 1)
    {
        if(IsPlayerInRangeOfPoint(playerid,3.5,-2648.1909, 1397.2834, 906.4609))
        {
             ShowPlayerDialogEx( playerid, DIALOG_3496, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin changes are free here.", "Wear", "Cancel" );
        }
        else
        {
             SendClientMessage(playerid, COLOR_WHITE, "   You're not near at the VIP Skin list!!");
        }
    }
    return 1;
}
Just saying, ok?

For fixes2 [Plugin or Include], Here you go :-
fixes2 - Updated 13/01/13.
Reply


Messages In This Thread
function "cmd_vipskin" should return a value - by ChuckyBabe - 08.06.2014, 02:43
Re: function "cmd_vipskin" should return a value - by Jack_Leslie - 08.06.2014, 02:49
Re: function "cmd_vipskin" should return a value - by Zex Tan - 08.06.2014, 02:49
Re: function "cmd_vipskin" should return a value - by ChuckyBabe - 08.06.2014, 02:53
Re: function "cmd_vipskin" should return a value - by Zex Tan - 08.06.2014, 03:01
Re: function "cmd_vipskin" should return a value - by SAMProductions - 08.06.2014, 03:06
Re: function "cmd_vipskin" should return a value - by Raza2013 - 08.06.2014, 03:10

Forum Jump:


Users browsing this thread: 1 Guest(s)