Problem SQL data
#2

Tien un exemple que je me sert perso:

PHP код:

forward AtmLoad
();
public 
AtmLoad() 
{
    
AtmCount cache_get_row_count();
    for(new 
0AtmCount+1i++) 
    {
         
AtmInfo[i][aID] = cache_get_field_content_int(i-1"Atm_ID");
         
AtmInfo[i][aPos][0] = cache_get_field_content_int(i-1"Atm_PosX");
         
AtmInfo[i][aPos][1] = cache_get_field_content_int(i-1"Atm_PosY");
         
AtmInfo[i][aPos][2] = cache_get_field_content_int(i-1"Atm_PosZ");
         
AtmInfo[i][aPos][3] = cache_get_field_content_int(i-1"Atm_PosA");
         
AtmInfo[i][aCash] = cache_get_field_content_int(i-1"Atm_Cash");
         
AtmInfo[i][aEtat] = cache_get_field_content_int(i-1"Atm_Etat");

         if(
AtmInfo[i][aEtat] == 0)
         {
             
AtmInfo[i][aObject] = CreateObject(2943AtmInfo[i][aPos][0],AtmInfo[i][aPos][1],AtmInfo[i][aPos][2],AtmInfo[i][aPos][3],0,0);
         }

         if(
AtmInfo[i][aEtat] == 1)
         {
             
AtmInfo[i][aObject] = CreateObject(2754AtmInfo[i][aPos][0],AtmInfo[i][aPos][1],AtmInfo[i][aPos][2],AtmInfo[i][aPos][3],0,0);
         }

    }
    
printf("[MYSQL]: %d atm on йtй chargй",AtmCount);
    return 
1;

Reply


Messages In This Thread
Problem SQL data - by Noliax8 - 02.08.2014, 21:08
Re: Problem SQL data - by DarkZeroX - 02.08.2014, 21:48
Re: Problem SQL data - by IstuntmanI - 02.08.2014, 21:54
Re: Problem SQL data - by Noliax8 - 02.08.2014, 22:01
Re: Problem SQL data - by DarkZeroX - 02.08.2014, 22:01

Forum Jump:


Users browsing this thread: 1 Guest(s)