Jump to content

[REZOLVAT] problema gm


LVCAS
 Share

Recommended Posts

  • Username: joyyy
  • Problema întălnită: problema la implementarea unui sistem
  • Detalii despre problemă: imi da cateva erori
  • Ce ai încercat să faci înainte să postezi?: am incercat toate chestiile posibile, am cautat pe forumuri de samp, am schimbat randurile. nimic.
  • Cod sursă (recomandat pastebin.com) : Erori : https://pastebin.com/2Yj1Ravy / cod sursa : https://pastebin.com/e5pdJ3NA (unde scrie "(25)" acolo e linia problema)
  • Alte detalii: help
Link to comment
Share on other sites

  • Administrator

Poftim

function loadApartments( )
{
    new id; serverApartments = cache_num_rows( );

    for( new i, j = cache_get_row_count( ); i != j; i++ )
    {
        id = cache_get_field_content_int( i, "ID" );
        
        apartmentsVariables[ id ][ apUser ] = cache_get_field_content_int( i, "UserID" );
        apartmentsVariables[ id ][ apValue ] = cache_get_field_content_int( i, "Value" );
        apartmentsVariables[ id ][ apSell ] = cache_get_field_content_int( i, "Sell" );
        apartmentsVariables[ id ][ apPos ][ 0 ] = cache_get_field_content_float( i, "X" );
        apartmentsVariables[ id ][ apPos ][ 1 ] = cache_get_field_content_float( i, "Y" );
        apartmentsVariables[ id ][ apPos ][ 2 ] = cache_get_field_content_float( i, "Z" );
        apartmentsVariables[ id ][ apPos ][ 3 ] = cache_get_field_content_float( i, "Angle" );
        apartmentsVariables[ id ][ apLabel ] = CreateDynamic3DTextLabel( "", -1, apartmentsVariables[ id ][ apPos ][ 0 ], apartmentsVariables[ id ][ apPos ][ 1 ], apartmentsVariables[ id ][ apPos ][ 2 ], 25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, -1, -1, 100.0 );
        
        refresh_apartment_label( id );
		
		cache_get_field_content( i, "Owner", apartmentsVariables[ id ][ apOwner ], SQL, 130 );
	}
}

 

Link to comment
Share on other sites

Hmm tot nu merge.. si tot aceeasi eroare imi da doar ca pe linia 32

cache_get_field_content( i, "Owner", apartmentsVariables[ id ][ apOwner ], SQL, 130 );

Edited by joyyy
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...