Problem(error/warning):Vako, sve do neki dan se moglo kupovati vozila u salonu, i sad kada kliknes kupi nista se ne desava...
Dio skripte: [ pawn ]/[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike
Ja sad trebam gledati u pasulj da skapiram zasto tebi nece da se kupi auto?
Daj jos informacija, delove koda i slicne stvari...
Buraz reci mi koji kod da ti dam
for( new as = 1; as < MAX_AUTOS; as++) {
new asFile[ 50 ];
format( asFile, sizeof( asFile ), AS_FILE, as );
if( fexist( asFile ) ) {
INI_ParseFile( asFile, "LoadSalon", .bExtra = true, .extra = as );
AutoSalon[ as ][ AlreadyBuying ] = false;
AutoSalon[ as ][ AutoSalon3D ] = CreateDynamic3DTextLabel( ""col_white"Da kupite vozilo kucajte\n"col_ugblue"[ /kupivozilo ]", -1, AutoSalon[ as ][ aPickupPos ][ 0 ], AutoSalon[ as ][ aPickupPos ][ 1 ], AutoSalon[ as ][ aPickupPos ][ 2 ], 5.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, AutoSalon[ as ][ aVW ], AutoSalon[ as ][ aInt ], -1, 20.0);
AutoSalon[ as ][ AutoSalonPickup ] = CreateDynamicPickup( 1239, 1, AutoSalon[ as ][ aPickupPos ][ 0 ], AutoSalon[ as ][ aPickupPos ][ 1 ], AutoSalon[ as ][ aPickupPos ][ 2 ], AutoSalon[ as ][ aVW ], AutoSalon[ as ][ aInt ], -1, 20.0 );
}
}
evo i ovo
CMD:kupivozilo( playerid, params[] )
{
if( ServerInfo[ KupovinaVozila ] == false ) return GRESKA( playerid, "Trenutno nije moguce kupovati vozila po salonima. Samo vikendom od 20h - 00h" );
if( PlayerInfo[ playerid ][ xWanted ] > 0 ) return GRESKA( playerid, "Ne mozes kupovati kad imas Wanted Level." );
if( PlayerInfo[ playerid ][ xVoziloID ][ 0 ] == -1 ) { }
else if( PlayerInfo[ playerid ][ xVoziloID ][ 1 ] == -1 ) { }
else if( PlayerInfo[ playerid ][ xVoziloID ][ 2 ] == -1 ) { }
else if( PlayerInfo[ playerid ][ xVoziloID ][ 3 ] == -1 )
{
if( PlayerInfo[ playerid ][ xDonatorSlot ] == true ) { }
else return GRESKA( playerid, "Svi slotovi vozila su vam zauzeti." );
}
else return GRESKA( playerid, "Svi slotovi vozila su vam zauzeti." );
new as = GetNearestSalon( playerid );
AutoSalonBojaVozila[ playerid ] = 15;
new bojica = AutoSalonBojaVozila[ playerid ];
if( GetNearestSalon( playerid ) == -1 ) return GRESKA( playerid, "Nisi na pickupu auto salona." );
if( AutoSalon[ as ][ AlreadyBuying ] == true ) return GRESKA( playerid, "Neko vec kupuje vozilo!" );
if( PlayerInfo[ playerid ][ xLevel ] < 3 ) return GRESKA( playerid, "Morate biti level 3+." );
new slotid = AutoSalon[ as ][ aIzlogVeh ];
AutoSalon[ as ][ AlreadyBuying ] = true;
PlayerBuyingAS[ playerid ] = as;
ModelCar[ playerid ] = 0;
ClearChat( playerid, 25 );
TogPlayerHud( playerid );
BuyCarTDControl( playerid, true );
BojaVozilaTDControl( playerid, true );
new string[ 128 ];
format( string, sizeof( string ), "%s", ImeVozila[ AutoSalon[ as ][ aVehModel ][ 0 ]-400 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 3 ], string );
format( string, sizeof( string ), "~w~%d$", VehPrice[ AutoSalon[ as ][ aVehModel ][ 0 ]-400 ][ 1 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 7 ], string );
format( string, sizeof( string ), "~w~%dg", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ][ 2 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 11 ], string );
PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 5 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 12 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 9 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ],bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ],bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ],bojica, bojica);
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 5 ] );
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 12 ] );
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 9 ] );
SetPlayerCameraPos( playerid, AutoSalon[ as ][ aCameraPos ][ 0 ], AutoSalon[ as ][ aCameraPos ][ 1 ], AutoSalon[ as ][ aCameraPos ][ 2 ] );
SetPlayerCameraLookAt( playerid, AutoSalon[ as ][ aCameraLookAt ][ 0 ], AutoSalon[ as ][ aCameraLookAt ][ 1 ], AutoSalon[ as ][ aCameraLookAt ][ 2 ] );
TogglePlayerControllable( playerid, false);
Dimi_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
VehicleInfo[ slotid ][ vID ] = Dimi_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], VehicleInfo[ slotid ][ vFuelProperty ], AutoSalon[ as ][ aVehModel ][ 0 ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], bojica, bojica, -1 );
SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );
SelectTextDraw( playerid, UGBOJA );