SA-MP Forums Archive
MySQL r41-4 - 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: MySQL r41-4 (/showthread.php?tid=656930)



MySQL r41-4 - Kraeror - 27.07.2018

Hello guys, I'm using MySQL R41-4 as you can see on the title! I have a question- I checked the SA-MP wiki in the MySQL R40 session but I couldn't find how can I get the Index of the row, that I have selected! Something like when I select: "SELECT * FROM `accounts` WHERE `Username` = 'John'". I want to see the row index of the John!


Re: MySQL r41-4 - Kraeror - 27.07.2018

Please answer me . I realy need help!


Re: MySQL r41-4 - augustogdo - 27.07.2018

Index is the number of the row you want to use from your query. As you are querying a player name, I believe that the names are unique for each player, so it will only return one line and the index is 0.