help me create the cmd /sellallhouse
#7

Quote:
Originally Posted by Yaa
Посмотреть сообщение
stop bumping !

PHP код:
CMD:sellallhouse(playeridparams[])
{
        for(new 
ii<MAX_PLAYERSi++)
        {
        if(
pAdmin[playerid] < 9)
        return 
Error(playerid"You are not authorized to use this command!");
        new 
h;
        if(!
strcmp(hInfo[i][HouseOwner], INVALID_HOWNER_NAMECASE_SENSETIVE)) return ShowInfoBoxEx(playeridCOLOR_SYSTEME_H_A_F_SALE);
        else
        {
        
ShowInfoBox(iI_H_SOLDh);
        
format(hInfo[i][HouseOwner], MAX_PLAYER_NAME"%s"INVALID_HOWNER_NAME);
        
format(hInfo[i][HousePassword], 30"%s""INVALID_HOUSE_PASSWORD");
        
format(hInfo[i][HouseName], MAX_HOUSE_NAME"%s"DEFAULT_HOUSE_NAME);
        
hInfo[i][HouseStorage] = 0;
        
hInfo[i][HousePrivacy] = 0;
        
hInfo[i][HouseForSale] = 0;
        
/*format(query, sizeof(query), "UPDATE houses SET hname='House For Sale!',howner='INVALID_PLAYER_ID',hpass='INVALID_HOUSE_PASSWORD',hstorage=0,hprivacy=0,last_visited=0,hforsale=0 WHERE house_id=%d", i);
        MySQL_updateQuery(query); About MySQL I'm not so sure */
        
foreach(new Player)
        {
              if(
IsPlayerInHouse(ih))
            {
                  
ExitHouse(ih);
                
ShowInfoBoxEx(iCOLOR_INFOI_TO_PLAYERS_HSOLD);
            }
        }
        
DestroyDynamicMapIcon(HouseMIcon[i]);
        
HouseMIcon[i] = CreateDynamicMapIcon(hInfo[i][CPOutX], hInfo[i][CPOutY], hInfo[i][CPOutZ], 31, -100, -1MICON_VD);
        
UpdateHouseText(i);
    }
    }
    return 
1;

Please i don't have so much skills in MySQL You can try googling for this
Commands error unknows
Reply


Messages In This Thread
help me create the cmd /sellallhouse - by gogo45 - 18.11.2016, 09:09
Re: help me create the cmd /sellallhouse - by gogo45 - 18.11.2016, 13:41
Re: help me create the cmd /sellallhouse - by gogo45 - 18.11.2016, 15:06
Re: help me create the cmd /sellallhouse - by gogo45 - 20.11.2016, 10:16
Re: help me create the cmd /sellallhouse - by BiosMarcel - 20.11.2016, 10:19
Re: help me create the cmd /sellallhouse - by Yaa - 20.11.2016, 10:24
Re: help me create the cmd /sellallhouse - by gogo45 - 20.11.2016, 11:45

Forum Jump:


Users browsing this thread: 1 Guest(s)