ZCMD command error
#2

PHP код:
CMD:resethouse(houseidparams[])
{
    new 
house;
    if(
sscanf(params"i"house)) return SendClientMessage(houseidCOLOR_GREY"/resethouse [houseid]")
     if(
hInfo[house][hcreated] != 1) return SendClientMessage(houseid, -1"Invalid house id");
      else
    {
        
hInfo[house][hcreated] = 0//it only changes these two things
        
hInfo[house][houseowned] = 0//it only changes these two things
        
for(new 0MAX_PLAYERSi++)
        {
            if(
pInfo[i][playerhouse] == house)
            {
                
pInfo[i][playerhouse] = 0;
            }
        }
         
hInfo[house][housepot] = 0;
         
hInfo[house][housegun] = 0;
         
hInfo[house][housecash] = 0;
        
hInfo[house][houselock] = 0;
         
format(stringsizeof(string), "You have deleted house id %d."house);
         
SendClientMessage(houseidCOLOR_GREYstring);
         new 
query[128];
         
mysql_format(dbHandlequerysizeof(query), "DELETE * FROM `houselist` WHERE `hID`=%d"house);
         
printf("%d deleted"house);
        
mysql_tquery(dbHandlequery"""");
    
    }
    return 
1;

Reply


Messages In This Thread
ZCMD command error - by iBots - 16.04.2015, 13:42
Re: ZCMD command error - by Azula - 16.04.2015, 13:48
Re: ZCMD command error - by iBots - 16.04.2015, 13:56
Re: ZCMD command error - by ATGOggy - 16.04.2015, 13:57
Re: ZCMD command error - by iBots - 16.04.2015, 14:01
Re: ZCMD command error - by ATGOggy - 16.04.2015, 14:04
Re: ZCMD command error - by iBots - 16.04.2015, 14:13
Re: ZCMD command error - by ATGOggy - 16.04.2015, 14:21
Re: ZCMD command error - by iBots - 16.04.2015, 14:28
Re: ZCMD command error - by ATGOggy - 16.04.2015, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)