SA-MP Forums Archive
Problem in my houses system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem in my houses system (/showthread.php?tid=339833)



Problem in my houses system - Sphex - 05.05.2012

nvm, succeeded.


Re: Problem in my houses system - Crazymax - 05.05.2012

lol what are you doing... why so many formats when you can just do it on one line?

just do some like.. (not tested)

pawn Код:
new str[256];
format(query, sizeof(query), "SELECT `owned`,`ownername`,`sellprice` FROM `houses` WHERE `hosueid` = '%d'", x);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows()!=0)
{
    if(mysql_fetch_row_format(str))
    {
        sscanf(str, "p<|>dsd",hInfo[x][howned],hInfo[x][hownername],hInfo[x][hsellprice]);
    }
}
mysql_free_result();



Re: Problem in my houses system - Sphex - 05.05.2012

nvm, succeeded.