CMD: Problem
#1

Hello All
I got a Problem with CMD:asellbiz When I do it it Sell All business Not only the one I wrote his id
So can Any one help meCMD text
PHP код:
CMD:asellbiz(playeridparams[])
{
    new 
bizidstring[128];
    if(
PlayerInfo[playerid][pAdmin] < 100005) return SendClientMessage(playeridCOLOR_GREY"You are not an authorized to use this command.");
    if(
sscanf(params"i"bizid)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: /asellbiz [bizid]");
    if(!
BizInfo[bizid][bType]) return SendClientMessage(playeridCOLOR_GREY"Invalid business id.");
    if(!
strcmp("The State"BizInfo[bizid][bOwner], true)) return SendClientMessage(playeridCOLOR_GREY"This business is not owned by anybody.");
    foreach(
Playeri)
    {
        {
            
PlayerInfo[i][pBiz] = 0;
            
format(stringsizeof(string), " Administrator %s has sold your business."RPN(playerid));
            
SendClientMessage(iCOLOR_WHITEstring);
        }
    }
    
format(stringsizeof(string), "AdmWarn: %s has sold %s's business. (ID %d)"RPN(playerid), BizInfo[bizid][bOwner], bizid);
    
ABroadCast(COLOR_DARKREDstring);
    
format(BizInfo[bizid][bOwner], 32"The State");
    
format(stringsizeof(string), "ID: %d\n%s\nOwner: %s\nStatus: For Sale\nPrice: $%d"bizidRBT(bizid), BizInfo[bizid][bOwner], BizInfo[bizid][bPrice]);
     
UpdateDynamic3DTextLabelText(BizInfo[bizid][bText], COLOR_WHITEstring);
    return 
1;

Please Write the right CMD and send me it Or post it in a reply
+ sorry on my english
Reply


Messages In This Thread
CMD: Problem - by SRP - 15.07.2013, 16:52
Re: CMD: Problem - by Bakr - 15.07.2013, 16:59
Re: CMD: Problem - by dominik523 - 15.07.2013, 17:33
Re: CMD: Problem - by SRP - 15.07.2013, 19:33

Forum Jump:


Users browsing this thread: 1 Guest(s)