28.04.2015, 19:53
When you select a player's data from the database, you know for sure that the max records exist for that player is 1 so the row is 0.
In case you'd select everything from a table and use a loop, the variable is used in the iterator would be the "rowid" instead.
About the not loading part, you'll need to explain more about what actually happens.
EDIT:
The first query is fine, if you remove `` around the fields you can then reduce the size of it.
About the second one, I've never used "name[x]" and I'm not sure if it's acceptable (check mysql logs) but there's a really good tutorial about how to save weapons: https://sampforum.blast.hk/showthread.php?tid=505081
In case you'd select everything from a table and use a loop, the variable is used in the iterator would be the "rowid" instead.
About the not loading part, you'll need to explain more about what actually happens.
EDIT:
The first query is fine, if you remove `` around the fields you can then reduce the size of it.
About the second one, I've never used "name[x]" and I'm not sure if it's acceptable (check mysql logs) but there's a really good tutorial about how to save weapons: https://sampforum.blast.hk/showthread.php?tid=505081