Assigning SQLite result into two separate variables.
#5

What I meant is every time a player gets a gun a row is created for him with his ID, maximum rows are two for each player, now if the player has two existing rows for himself I am trying to figure out how to get the two rows separately and then putting them into two separate rows.

I'll show you my table itself
pawn Код:
strcat(Query, "CREATE TABLE IF NOT EXISTS `Weapons` (`ID` INTEGER DEFAULT 0 NOT NULL, `Weapon` INTEGER DEFAULT 0 NOT NULL, `Ammo` INTEGER DEFAULT 0 NOT NULL, FOREIGN KEY(`ID`) REFERENCES `Users`(`UserID`) ON UPDATE CASCADE ON DELETE CASCADE);", sizeof(Query));
Reply


Messages In This Thread
Assigning SQLite result into two separate variables. - by DarkLored - 07.05.2016, 03:01
Re: Assigning SQLite result into two separate variables. - by iggy1 - 07.05.2016, 05:53
Re: Assigning SQLite result into two separate variables. - by DarkLored - 07.05.2016, 15:09
Re: Assigning SQLite result into two separate variables. - by iggy1 - 07.05.2016, 15:20
Re: Assigning SQLite result into two separate variables. - by DarkLored - 07.05.2016, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)