Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

MySQL loading data with loops?

$
0
0
Is there any way to load the columns in Mysql database with a loop?

I have the following columns in the database:
Code:

Object1, Object2, Object3, Object4, Object5
I tried something like that, but I think it's got to be formatted, I do not know how.
Code:

        if(cache_num_rows() > 0)
        {
                for(new i=0; t < 5; i++)       
                { 
                        cache_get_value_int(0,                "Object%d",                Player[playerid][Object][%d]);       

                }
        }


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>