[FilterScript] iHouse - V2 | MySQL | ZCMD - [FIXED from v1]
#16

Very nice, but i can shortd this,
PHP Code:
 format(querysizeof(query), "UPDATE `houseinfo` SET `outX`='%f' WHERE `hID`=%d"House[h][outX], h);
    
mysql_query(query);
    
format(querysizeof(query), "UPDATE `houseinfo` SET `outY`='%f' WHERE `hID`=%d"House[h][outY], h);
    
mysql_query(query);
    
format(querysizeof(query), "UPDATE `houseinfo` SET `outZ`='%f' WHERE `hID`=%d"House[h][outZ], h);
    
mysql_query(query);
    
format(querysizeof(query), "UPDATE `houseinfo` SET `intX`='%f' WHERE `hID`=%d"House[h][intX], h);
    
mysql_query(query);
    
format(querysizeof(query), "UPDATE `houseinfo` SET `intY`='%f' WHERE `hID`=%d"House[h][intY], h);
    
mysql_query(query);
    
format(querysizeof(query), "UPDATE `houseinfo` SET `intZ`='%f' WHERE `hID`=%d"House[h][intZ], h);
    
mysql_query(query);
    
format(querysizeof(query), "UPDATE `houseinfo` SET `intINT`='%d' WHERE `hID`=%d"House[h][intINT], h);
    
mysql_query(query); 
with (,) Example,
PHP Code:
"UPDATE `houseinfo` SET `outX`='%f',`outY`='%f',outZ`='%f',  WHERE `hID`=%d'"House[h][outX], House[h][outY], House[h][outZ],
Overall, nice
Reply


Messages In This Thread
iHouse - V2.1 | MySQL | ZCMD - [FIXED from v1] - by Brandon_More - 17.04.2014, 01:14
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by VINNY13126 - 17.04.2014, 04:08
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by iRaiDeN - 17.04.2014, 08:46
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by iBanner - 17.04.2014, 08:53
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by FreAkeD - 18.04.2014, 07:39
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by Brandon_More - 18.04.2014, 12:28
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by iZN - 18.04.2014, 12:31
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by FreAkeD - 18.04.2014, 12:52
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by [YU]Nikola - 19.04.2014, 10:50
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by iBanner - 19.04.2014, 10:52
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by DumSAS - 19.04.2014, 12:20
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by AaronFarley - 20.04.2014, 15:03
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by spenne - 24.04.2014, 21:41
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by therainycat - 24.04.2014, 22:23
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by M3HR4N - 05.05.2014, 13:22
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by iRaiDeN - 05.05.2014, 13:26
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by EuphoriaStory - 01.06.2014, 15:00
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by superman21 - 01.06.2014, 16:41
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by Inn0cent - 01.06.2014, 16:50
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by KennJie - 05.06.2014, 11:15
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by kampuman - 07.12.2014, 22:22
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by AzaMx - 10.01.2015, 07:15
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by Maximun - 10.01.2015, 11:35
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by xXdaeminoXx - 06.03.2015, 18:55
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by AlbaniaMafiaRP - 01.12.2015, 09:40
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by AlbaniaMafiaRP - 01.12.2015, 20:25
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by FreAkeD - 01.12.2015, 20:33
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by AlbaniaMafiaRP - 02.12.2015, 16:56
Re: iHouse - V2 | MySQL | ZCMD - [FIXED from v1] - by UndefinedName - 02.12.2015, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)