Help!, MYSQL Load
#3

Nop, don't work
i have this code and work full.
PHP код:
forward LoadInts();
public 
LoadInts()
{
    new 
arrCoords[15][64];
    new 
string[256];
    new 
row [512];
    new 
idx;
    while (
idx sizeof(IntInfo))
    {
        
format(stringsizeof(string), "SELECT * FROM `interiors` WHERE ID=%d",idx);
        
mysql_query_ex(string);
        
mysql_store_result();
        if(
mysql_num_rows() > 0)
        {
            
mysql_fetch_row(row);
            
split(rowarrCoords'|');
            
mysql_free_result();
            
IntInfo[idx][iEntrancex] = floatstr(arrCoords[1]);
            
IntInfo[idx][iEntrancey] = floatstr(arrCoords[2]);
            
IntInfo[idx][iEntrancez] = floatstr(arrCoords[3]);
            
IntInfo[idx][iExitx] = floatstr(arrCoords[4]);
            
IntInfo[idx][iExity] = floatstr(arrCoords[5]);
            
IntInfo[idx][iExitz] = floatstr(arrCoords[6]);
            
strmid(IntInfo[idx][iDiscription], arrCoords[7], 0strlen(arrCoords[7]), 255);
            
IntInfo[idx][iWorld] = strval(arrCoords[8]);
            
IntInfo[idx][iInt] = strval(arrCoords[9]);
            
IntInfo[idx][iType] = strval(arrCoords[10]);
            
IntInfo[idx][iIcon] = strval(arrCoords[11]);
            
IntInfo[idx][iIconT] = strval(arrCoords[12]);
            
IntInfo[idx][iPick] = strval(arrCoords[13]);
            
IntInfo[idx][iPickT] = strval(arrCoords[14]);
        }
        
mysql_free_result();
        
idx++;
    }
    return 
1;

Reply


Messages In This Thread
Help!, MYSQL Load - by CoR3 - 07.03.2015, 01:33
Re: Help!, MYSQL Load - by X337 - 07.03.2015, 02:37
Re: Help!, MYSQL Load - by CoR3 - 07.03.2015, 04:00

Forum Jump:


Users browsing this thread: 1 Guest(s)