17.01.2014, 14:25
The guy above is wrong aswell.
DO it like this
DO it like this
pawn Код:
CMD:setbname(playerid, params[])
{
new input[128], idx = PlayerInfo[playerid][pBiz];
if(!PlayerInfo[playerid][pBiz] && !PlayerInfo[playerid][pVBiz]) return SendClientMessage(playerid, COLOR_GREY, "You don't own a business.");
if(sscanf(params, "s[128]", input)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setbname [name]");
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;
}

