Problem in my houses system
#1

nvm, succeeded.
Reply
#2

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();
Reply
#3

nvm, succeeded.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)