09.03.2014, 19:13
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:
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;
}