Need help about this command
#1

I'm a new scripter as well, and i'm still learning about zcmd.

I need help for making this command working properly, i can't complie it i got too many errors.

pawn Код:
CMD:setbname(playerid, params[])
{
    if(!PlayerInfo[playerid][pBiz] && !PlayerInfo[playerid][pVBiz]) return SendClientMessage(playerid, COLOR_GREY, "You don't own a business.");
    }
    else if(PlayerInfo[playerid][pBiz])
    {
        new input;
        new idx = PlayerInfo[playerid][pBiz];
        if(IsPlayerInRangeOfPoint(playerid, 2, BizInfo[PlayerInfo[playerid][pBiz]][bX], BizInfo[PlayerInfo[playerid][pBiz]][bY], BizInfo[PlayerInfo[playerid][pBiz]][bZ]))
        BizInfo[idx][bName] = input;
        format(string, sizeof(string), "INFO: You have set your business name to '%s.'", input);
        SendClientMessageEx(playerid, COLOR_WHITE, string)
        Log("logs/business.log", string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Need help about this command - by NekoChan - 17.01.2014, 14:13
Re: Need help about this command - by Zamora - 17.01.2014, 14:17
Re: Need help about this command - by Rapeassboi - 17.01.2014, 14:25
Re: Need help about this command - by NekoChan - 17.01.2014, 14:40
Re: Need help about this command - by Konstantinos - 17.01.2014, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)