SQLite
#1

Hi, I started scripting a gamemode with SQLite so I got a question: do I need to get a result from an update or insert query and free it? I know that I need to do that with select queries, but what about update and insert?
Reply
#2

No you don't since you have not requested any information to be returned.

There is no need to free results that don't exist.
Reply
#3

Quote:
Originally Posted by azzerking
Посмотреть сообщение
No you don't since you have not requested any information to be returned.

There is no need to free results that don't exist.
Right, I realized that a few minutes ago lol.
Reply
#4

Hello everyone. I have a problem.. Idk how to make a new post ) only reply, so:

Error: warning 213: tag mismatch

Source: format(querySting, sizeof(querySting), "INSERT INTO `houses` (`HouseID`, `HousePrice`, `HouseInterior`, `HouseLocked`, `HouseOwned`, `HouseOwner`, `HouseLabel`, `HousePickup`, `HouseVW`, `HousePosX`, `HousePosY`, `HousePosZ`) VALUES \
('0', '%d', '%d', '%d', '%d', '%s', '%s', '%d', '%d', '%f', '%f', '%f')",
HouseInfo[i][HousePrice], HouseInfo[i][HouseInterior], HouseInfo[i][HouseLocked], HouseInfo[i][HouseOwned], HouseInfo[i][HouseOwner], HouseInfo[i][HouseLabel], HouseInfo[i][HousePickup], HouseInfo[i][HouseVW], HouseInfo[i][HousePos][0], HouseInfo[i][HousePos][1], HouseInfo[i][HousePos][2]);
Reply
#5

Here's where to make a new thread, it's better to remove your comment.
http://forum.sa-mp.com/newthread.php?do=newthread&f=12
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)