29.11.2014, 17:30
All this is doing is storing the result from the MySQL database to a variable..
I suppose this is for assigning the weapon ID to a saving system.
As in, your table `weapons` will consist of a bunch of numbers that correspond to the weapon ID's within the name.
WepSQLID is looping through, making this
WepSQLID[0]
WepSQLID[1]
WepSQLID[2]
WepSQLID[3] etc..
So, until the if statement in the loop in GetIndexFromSQL looks like this(compiled ofc):
if(38 == WepSQLID[38]) which would be a minigun
Maybe I've got the entire wrong end of the stick
I suppose this is for assigning the weapon ID to a saving system.
As in, your table `weapons` will consist of a bunch of numbers that correspond to the weapon ID's within the name.
WepSQLID is looping through, making this
WepSQLID[0]
WepSQLID[1]
WepSQLID[2]
WepSQLID[3] etc..
So, until the if statement in the loop in GetIndexFromSQL looks like this(compiled ofc):
if(38 == WepSQLID[38]) which would be a minigun
Maybe I've got the entire wrong end of the stick