Jump to content
  • 0

Nu incarca din baza de date


Go to solution Solved by shane,

Question

Am codul urmator pentru a incarca modurile masini:     cache_get_field_content(i, "Mods", Mods, SQL, 50);
    sscanf(Mods, "p<|>iiiiiiiiiiiiii", CarInfo[id][cMod][0], CarInfo[id][cMod][1], CarInfo[id][cMod][2], CarInfo[id][cMod][3], CarInfo[id][cMod][4], CarInfo[id][cMod][5], CarInfo[id][cMod][6],
        CarInfo[id][cMod][7], CarInfo[id][cMod][8], CarInfo[id][cMod][9], CarInfo[id][cMod][10], CarInfo[id][cMod][11], CarInfo[id][cMod][12], CarInfo[id][cMod][13]);
    cache_delete(db);, dar nu incarca.

Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
  • Solution

Salut @SenpaiAdv,

Foloseste exemplul de mai jos:

new result[ 50 ], var[ 50 ];
cache_get_field_content(i, "Mods", result), format(var, sizeof var, result); // sau cache_get_field_name (daca folosesti Mysql r40+)
sscanf(var, "p<|>iiiiiiiiiiiiii", CarInfo[id][cMod][0], CarInfo[id][cMod][1], CarInfo[id][cMod][2], CarInfo[id][cMod][3], CarInfo[id][cMod][4], CarInfo[id][cMod][5], CarInfo[id][cMod][6], CarInfo[id][cMod][7], CarInfo[id][cMod][8], CarInfo[id][cMod][9], CarInfo[id][cMod][10], CarInfo[id][cMod][11], CarInfo[id][cMod][12], CarInfo[id][cMod][13]);

 

Edited by shane
Link to post
Share on other sites
  • 0
Acum 7 ore, shane a spus:

Salut @SenpaiAdv,

Foloseste exemplul de mai jos:

new result[ 50 ], var[ 50 ];
cache_get_field_content(i, "Mods", result), format(var, sizeof var, result); // sau cache_get_field_name (daca folosesti Mysql r40+)
sscanf(var, "p<|>iiiiiiiiiiiiii", CarInfo[id][cMod][0], CarInfo[id][cMod][1], CarInfo[id][cMod][2], CarInfo[id][cMod][3], CarInfo[id][cMod][4], CarInfo[id][cMod][5], CarInfo[id][cMod][6], CarInfo[id][cMod][7], CarInfo[id][cMod][8], CarInfo[id][cMod][9], CarInfo[id][cMod][10], CarInfo[id][cMod][11], CarInfo[id][cMod][12], CarInfo[id][cMod][13]);

 

Multumesc mult

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.