[SQL-WEIRD][Print]Come explain please
#1

hey my code

PHP Code:
stock SaveHouse(id)
{
    if(!
Iter_Contains(Housesid)) return 0;
    
mysql_format(gSQLHandlequerysizeof(query), "UPDATE houses SET HouseName='%s', HouseOwner='%s', HousePassword='%s', HouseLock=%d, HouseMoney=%d, LastEntered=%d WHERE ID=%d",
    
HouseData[id][Name], HouseData[id][Owner], HouseData[id][Password], HouseData[id][LockMode], HouseData[id][SafeMoney], HouseData[id][LastEntered], id);
    
mysql_tquery(gSQLHandlequery"""");
    
HouseData[id][Save] = false;
    return 
1;

This not work i meant it not save but when i put the print like this

PHP Code:
stock SaveHouse(id)
{
    if(!
Iter_Contains(Housesid)) return 0;
    
mysql_format(gSQLHandlequerysizeof(query), "UPDATE houses SET HouseName='%s', HouseOwner='%s', HousePassword='%s', HouseLock=%d, HouseMoney=%d, LastEntered=%d WHERE ID=%d",
    
HouseData[id][Name], HouseData[id][Owner], HouseData[id][Password], HouseData[id][LockMode], HouseData[id][SafeMoney], HouseData[id][LastEntered], id);
    print(
query); //<<<< here
    
mysql_tquery(gSQLHandlequery"""");
    
HouseData[id][Save] = false;
    return 
1;

It Workkk(it saved) when i put the print like this

i don't really know why can someone explain this please i get confused over it
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)