Data always equal 0
#1

PHP код:
new select[200];
             
format(selectsizeof(select), "SELECT storge FROM houses WHERE id='%i'"PlayerInfo[playerid][pHouseID]);
            new 
Cache:cache mysql_query(1select);
            new 
money;
            
cache_get_field_content_int(0"storge"money); 
It isn't equal 0 in the database but when I get it in the game it equals 0
Reply
#2

Idk about mysql but i saw somthing like this:
"SELECT `storage` FROM `houses` WHERE `id` = `%e`"
Reply
#3

Read the manual. https://sampwiki.blast.hk/wiki/MySQL/R33...ld_content_int

Also please learn when and how to thread.
Reply
#4

I don't thread unless I don't find a way to solve the problem which I have or I don't even find the problem.
Reply
#5

Seriously ... It should be the other way around, i.e. not threading if the problem can't be solved with threads, which is rare.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)