Jump to content

Recommended Posts

Posted

Salut, aș vrea să aflu care este cea mai eficientă metodă de a incărca datele din baza de date pentru MYSQL R39-6 mai exact. Am observat in mai multe gamemode-uri că se folosesc diverse căi,  spre exemplu:

1.  mysql_query(SQL,"SELECT * FROM `exemple` ORDER BY `exemple`.`ID` ASC");
     mysql_store_result();
     while(mysql_retrieve_row())
     {
        new i = index;
        mysql_get_field("ID", result);                exemple[exempleID] = strval(result);

2. new Cache: db = mysql_query(SQL, "SELECT * FROM `exemple` ORDER BY `exemple`.`ID` ASC");
     for(new i, j = cache_get_row_count (); i != j; ++i)
    {
           cache_get_field_content(i, "ID", result); x = strval(result); exemple[x][exempleID] = x;

Am căutat pe mai multe forum-uri dar nu găsesc nicăieri un tutorial despre acest subiect de accea m-am decis să deschid un topic aici. O zi bună.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.