Command not working!
#1

Command i made is not setting the Price wtf??Anyone help?
On compile i get no errors

pawn Код:
CMD:setenfee(playerid, params[])
{
    new fee, bizid;
    if(PlayerInfo[playerid][pBizKey] != INVALID_BIZZ_ID && (IsPlayerInRangeOfPoint(playerid, 2.0, BizInfo[PlayerInfo[playerid][pBizKey]][XCoord], BizInfo[PlayerInfo[playerid][pBizKey]][YCoord], BizInfo[PlayerInfo[playerid][pBizKey]][ZCoord]) || IsPlayerInRangeOfPoint(playerid, 2.0, BizInfo[PlayerInfo[playerid][pBizKey]][IXCoord], BizInfo[PlayerInfo[playerid][pBizKey]][IYCoord], BizInfo[PlayerInfo[playerid][pBizKey]][IZCoord])))
    {
        if(sscanf(params, "i", fee)) return SendClientMessageEx(playerid, COLOR_GRAD3, "USAGE: /setenfee [fee]");
        BizInfo[bizid][EntranceFee] = fee;
        SaveBizInfo(bizid);
        LoadBizInfo(bizid);
        return 1;
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GRAD2, "You don't own a business, or are not at one of them.");
        return 1;
    }
}
Reply


Messages In This Thread
Command not working! - by San1 - 28.06.2013, 04:13
Respuesta: Command not working! - by JustBored - 28.06.2013, 04:25
Re: Command not working! - by CoaPsyFactor - 28.06.2013, 08:57

Forum Jump:


Users browsing this thread: 1 Guest(s)