2 different Column
#1

nevermind!
Reply
#2

pawn Код:
mysql_format(mysql,query,sizeof(query), "UPDATE `houses` SET `HOwned` = %i WHERE `ID`=%d",players.ID,HouseInfo[HouseID?]);
mysql_query(mysql, query);
Simple, change your `HOwned` value to players.ID or whatever you are using to get their SQL ID
Reply
#3

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
pawn Код:
mysql_format(mysql,query,sizeof(query), "UPDATE `houses` SET `HOwned` = %i WHERE `ID`=%d",players.ID,HouseInfo[HouseID?]);
mysql_query(mysql, query);
Simple, change your `HOwned` value to players.ID or whatever you are using to get their SQL ID
Is it really so simple?
Reply
#4

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
The player is buying a house, so he is online. Then you can easily load the SQL ID when the player connects (which you should do) to a variable and use it...
If you don't mind could you give me an example?
Reply
#5

Any solution?
Reply
#6

Execute a query for each table, that's all.
Reply
#7

Quote:
Originally Posted by Kevln
Посмотреть сообщение
Execute a query for each table, that's all.
I want to get the value from ID and set it to HouseOwnerID..
Reply
#8

Help D:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)