Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. function loadApartments( ){
  2. new id; serverApartments = cache_num_rows( );
  3. for( new i, j = cache_get_row_count( ); i != j; i++ ){
  4. id = cache_get_field_content_int( i, "ID" );
  5. apartmentsVariables[ id ][ apUser ] = cache_get_field_content_int( i, "UserID" );
  6. apartmentsVariables[ id ][ apValue ] = cache_get_field_content_int( i, "Value" );
  7. apartmentsVariables[ id ][ apSell ] = cache_get_field_content_int( i, "Sell" );
  8. apartmentsVariables[ id ][ apPos ][ 0 ] = cache_get_field_content_float( i, "X" );
  9. apartmentsVariables[ id ][ apPos ][ 1 ] = cache_get_field_content_float( i, "Y" );
  10. apartmentsVariables[ id ][ apPos ][ 2 ] = cache_get_field_content_float( i, "Z" );
  11. apartmentsVariables[ id ][ apPos ][ 3 ] = cache_get_field_content_float( i, "Angle" );
  12. 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 );
  13. refresh_apartment_label( id );
  14. (25) cache_get_field_content( i, "Owner", apartmentsVariables[ id ][ apOwner ], SQL, 130 );
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement