reset house after 1 week
#3

i started like this..

Quote:

forward ResetAndSaveHouses();
public ResetAndSaveHouses()
{
new HouseID;
for (HouseID = 1; HouseID < MAX_HOUSES; HouseID++)
{
if(AHouseData[HouseID][LastEntered] > 0 && gettime()-AHouseData[HouseID][LastEntered] > 604800) return dcmd_evelkoy;
}

return 1;
}

but it gives this problem:
Quote:

error 076: syntax error in the expression, or invalid function call

line:
Quote:

if(AHouseData[HouseID][LastEntered] > 0 && gettime()-AHouseData[HouseID][LastEntered] > 604800) return dcmd_evelkoy;

dcmd_evelkoy is like admins sell house..
Reply


Messages In This Thread
reset house after 1 week - by sirvanec - 19.07.2015, 19:33
Re: reset house after 1 week - by Dokins - 19.07.2015, 19:45
Re: reset house after 1 week - by sirvanec - 19.07.2015, 19:59
Re: reset house after 1 week - by Dokins - 19.07.2015, 20:02
Re: reset house after 1 week - by sirvanec - 19.07.2015, 20:04
Re: reset house after 1 week - by Dokins - 19.07.2015, 20:05
Re: reset house after 1 week - by sirvanec - 19.07.2015, 20:09
Re: reset house after 1 week - by sirvanec - 19.07.2015, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)