Radari

Započeo dazer, April 26, 2020, 23:18:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Nije error, vec se radari ne ucitaju na sacuvanoj poziciji
Dio skripte: [pawn]forward OnRadarsLoad( );
public OnRadarsLoad( ) {

    new rows, fields, radarID, RadarsCounter = 0, string[90];
    cache_get_data( rows, fields, _dbConnector );

   if( rows )
   {
      for( new i = 0; i < rows; i ++ )
      {
         radarID = RadarsCounter;

         radarInfo[ radarID ][ radar_ID ] = cache_get_field_content_int( i, "radar_id" );

         radarInfo[ radarID ][ radarMaxSpeed ] = cache_get_field_content_int( i, "radar_speed" );
         radarInfo[ radarID ][ radarPrice ] = cache_get_field_content_int( i, "radar_price" );

         radarInfo[ radarID ][ radarPos ][ 0 ] = cache_get_field_content_float( i, "pos_1" );
         radarInfo[ radarID ][ radarPos ][ 1 ] = cache_get_field_content_float( i, "pos_2" );
         radarInfo[ radarID ][ radarPos ][ 2 ] = cache_get_field_content_float( i, "pos_3" );
         radarInfo[ radarID ][ radarPos ][ 3 ] = cache_get_field_content_float( i, "pos_4" );
         radarInfo[ radarID ][ radarPos ][ 4 ] = cache_get_field_content_float( i, "pos_5" );
         radarInfo[ radarID ][ radarPos ][ 5 ] = cache_get_field_content_float( i, "pos_6" );

         radarInfo[ radarID ][ radarObject ] = CreateDynamicObject( 18880, radarInfo[ radarID ][ radarPos ][ 0 ], radarInfo[ radarID ][ radarPos ][ 1 ], radarInfo[ radarID ][ radarPos ][ 2 ], radarInfo[ radarID ][ radarPos ][ 3 ], radarInfo[ radarID ][ radarPos ][ 4 ], radarInfo[ radarID ][ radarPos ][ 5 ] );
         format( string, sizeof( string ), ""col_server"[ Radar - (%d) ]\nMax. Speed: "col_white"%dkm/h\n"col_server"Kazna: "col_white"$%d", radarID , radarInfo[ radarID ][ radarMaxSpeed ], radarInfo[ radarID ][ radarPrice ] );
           radarInfo[ radarID ][ radarText3D ] = CreateDynamic3DTextLabel( string, BELA, radarInfo[ radarID ][ radarPos ][ 0 ], radarInfo[ radarID ][ radarPos ][ 1 ], radarInfo[ radarID ][ radarPos ][ 2 ]+5, 50.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1 );
         
         RadarsCounter++;
      }
   }
   return true;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): //

*BUMP*
Ispricavam se sto nije proslo 24h hitno je

Lock, falila jedna provjera kod kreiranja