Help MySQL rows
#1

Hey, when i load it dont work... Just load me the first interior in the databes... I dont know the problem..
Under the OnGameModeInit i have the:

pawn Code:
mysql_function_query( dbHandle,"SELECT * FROM db_interiors", true, "CheckInterior", "" );
pawn Code:
function CheckInterior() {

    new
        rows,
        fields;

    cache_get_data( rows, fields );
    if( !rows )
    {
        print( "[WARNING][MySQL] Nije moguce pronaci podatke za Interiore!( no interiors )" );
    }
    else
    {
        InteriorInfo[ rows ][ iVirtualWorld ] = cache_get_field_content_int( 0, "iVirtualWorld" );
        InteriorInfo[ rows ][ iType ] = cache_get_field_content_int( 0, "iType" );
        InteriorInfo[ rows ][ iX ] = cache_get_field_content_float( 0, "iX" );
        InteriorInfo[ rows ][ iY ] = cache_get_field_content_float( 0, "iY" );
        InteriorInfo[ rows ][ iZ ] = cache_get_field_content_float( 0, "iZ" );

        AddStaticPickup( INTERIOR_PICKUP, INTERIOR_PICKUP_TYPE, InteriorInfo[ rows ][ iX ], InteriorInfo[ rows ][ iY ], InteriorInfo[ rows ][ iZ ], INTERIOR_PICKUP_VIRTUAL_WORLD );
    }

    return true;
}
Reply


Messages In This Thread
Help MySQL rows - by shulk - 09.03.2014, 19:13
Re: Help MySQL rows - by shulk - 10.03.2014, 15:01
AW: Help MySQL rows - by Macronix - 10.03.2014, 15:03
Re: AW: Help MySQL rows - by Vince - 10.03.2014, 15:22
Re: Help MySQL rows - by shulk - 10.03.2014, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)