My sql / Scripting wrong?[Help][SQL]
#1

hey this line

PHP код:
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;

Why it not save the house system? can someone explain

iff you guys wanna get more information about the code tell me

if someone can help help me
Reply
#2

Hello!

What is printing?
PHP код:
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);
    
mysql_tquery(gSQLHandlequery"""");
    
HouseData[id][Save] = false;
    return 
1;

Mencent
Reply
#3

you want me to put the print there?

so if it success it will proceed in the log?

ok i'll try
Reply
#4

Ok, do this!

Mencent
Reply
#5

WTF .

I dont understand why it save now!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

i just put the print on it <<< this doesn't effect the code ikr
Reply
#6

So it works now?

Mencent
Reply
#7

yes, but i don't understand why it work

I'll try to delete the print code and see if the print affect my code waittt....
Reply
#8

Ok, this is weird
Reply
#9

yesss weird ,, the print make the code save

cuz when i delete the print it doesn't save anymore

i want someone to explain this

btw thank you
Reply
#10

https://sampforum.blast.hk/showthread.php?tid=570454
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)