Could someone help me decipher this a little?
#4

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
Reply


Messages In This Thread
Could someone help me decipher this a little? - by Dokins - 29.11.2014, 15:46
Re: Could someone help me decipher this a little? - by Raweresh - 29.11.2014, 16:52
Re: Could someone help me decipher this a little? - by Dokins - 29.11.2014, 17:20
Re: Could someone help me decipher this a little? - by sammp - 29.11.2014, 17:30
Re: Could someone help me decipher this a little? - by Dokins - 29.11.2014, 17:38
Re: Could someone help me decipher this a little? - by PT - 29.11.2014, 17:45
Re: Could someone help me decipher this a little? - by Dokins - 29.11.2014, 18:24
Re: Could someone help me decipher this a little? - by sammp - 29.11.2014, 19:22

Forum Jump:


Users browsing this thread: 2 Guest(s)