SA-MP Forums Archive
My house system problem - 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: My house system problem (/showthread.php?tid=326043)



My house system problem - Tanush123 - 15.03.2012

Well when i createhouse i get this 0
pawn Код:
format(query,sizeof(query),"UPDATE Houses SET World = %d, Interior = %d, Cost = %d WHERE ID = %d",GetPlayerVirtualWorld(playerid),inte,amount,GetHouseid());
    mysql_query(query);
on my phpmyadmin but my debug shows that interior is 1 and cost is 100. How do i fix this?


Re: My house system problem - jameskmonger - 15.03.2012

pawn Код:
format(query,sizeof(query),"UPDATE Houses SET World = %d, Interior = %d, Cost = %d WHERE ID = %d",GetPlayerVirtualWorld(playerid),inte,amount,GetHouseid());
    //mysql_query(query);
    print(query);
Create the house and tell us what is printed in the console.