Errors
#1

Код:
[08:54:51] Number of vehicle models: 25
[08:55:32] Incoming connection: 114.130.64.154:55732
[08:55:36] [join] Tuntun has joined the server (0:114.130.64.154)
[08:55:41] [debug] Server crashed while executing 18WoS.amx
[08:55:41] [debug] AMX backtrace:
[08:55:41] [debug] #0 native fwrite () [0809aad0] from samp47180
[08:55:41] [debug] #1 0001e0c0 in ?? (0x00000000) from 18WoS.amx
[08:55:41] [debug] #2 00040408 in ?? (0x00000000, 0x00000001, 0x0025bb80) from 18WoS.amx
[08:55:41] [debug] #3 000858b4 in public OnDialogResponse (0x00000000, 0x00000001, 0x00000001, 0xffffffff, 0x0025bb80) from 18WoS.amx
[08:55:41] [debug] Native backtrace:
[08:55:41] [debug] #0 b73f331b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[08:55:41] [debug] #1 b73ed7c2 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[08:55:41] [debug] #2 b73ee3ac in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[08:55:41] [debug] #3 b73ee856 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[08:55:41] [debug] #4 b73f2f6c in ?? () from plugins/crashdetect.so
[08:55:41] [debug] #5 b7769600 in ?? ()
[08:55:41] [debug] #6 b74d5577 in gsignal () from /lib/libc.so.6
[08:55:41] [debug] #7 b74d8962 in abort () from /lib/libc.so.6
[08:55:41] [debug] #8 b74ce767 in __assert_fail () from /lib/libc.so.6
[08:55:41] [debug] #9 0809a6fc in ?? () from samp47180
[08:55:41] [debug] #10 0809ab5f in ?? () from samp47180
[08:55:41] [debug] #11 08093e44 in ?? () from samp47180
[08:55:41] [debug] #12 b73eb03c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[08:55:41] [debug] #13 b73f1458 in ?? () from plugins/crashdetect.so
[08:55:41] [debug] #14 b73f5c61 in amx_Exec () from plugins/crashdetect.so
[08:55:41] [debug] #15 b73ed708 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[08:55:41] [debug] #16 b73f11c9 in ?? () from plugins/crashdetect.so
[08:55:41] [debug] #17 080ae5bf in ?? () from samp47180
[08:55:41] [debug] #18 080b99e4 in ?? () from samp47180
[08:55:41] [debug] #19 08071b48 in ?? () from samp47180
[08:55:41] [debug] #20 08071c42 in ?? () from samp47180
[08:55:41] [debug] #21 0807bac0 in ?? () from samp47180
[08:55:41] [debug] #22 080b5c2d in ?? () from samp47180
[08:55:41] [debug] #23 080b5dc2 in ?? () from samp47180
[08:55:41] [debug] #24 080b16d3 in ?? () from samp47180
[08:55:41] [debug] #25 b74c1c96 in __libc_start_main () from /lib/libc.so.6
[08:55:41] [debug] #26 0804b521 in ?? () from samp47180
How can i fix them?
Reply
#2

The errors seem to be from something in OnDialogResponse, possible an 'fwrite' function by looking at the log. Can you post your entire OnDialogResponse callback?
Reply
#3

Yap sure. When i added this am getting these errors. i just made this shit:
Код:
COMMAND:rules(playerid, params[])
{

	if (APlayerData[playerid][LoggedIn] == true)
	{
		ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX ,"Server Rules","Always  drive in right side of the road\nRespect Others\nDo not use any hack or any mod expect car mods\nMe mature\nDo not ask to be admin\nDo not abuse your powers\nDon't insult anyone\nBe helpful","Accept","Cancel");
	}
	else
	    return 0;

	return 1;
}
Код:
// This callback gets called when a player interacts with a dialog
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	// Select the proper dialog to process
	switch (dialogid)
	{
		case DialogRegister: Dialog_Register(playerid, response, inputtext); // The "Register"-dialog
		case DialogLogin: Dialog_Login(playerid, response, inputtext); // The "Login"-dialog

		case DialogStatsOtherPlayer: Dialog_StatsOtherPlayer(playerid, response, listitem);
		case DialogStatsHouse: Dialog_StatsHouse(playerid, response, listitem);
		case DialogStatsGoHouse: Dialog_StatsGoHouse(playerid, response, listitem);
		case DialogStatsGoBusiness: Dialog_StatsGoBusiness(playerid, response, listitem);

		case DialogRescue: Dialog_Rescue(playerid, response, listitem); // The rescue-dialog

		case DialogBuyLicenses: Dialog_BuyLicenses(playerid, response, listitem); // The license-dialog (allows the player to buy trucker/busdriver licenses)

		case DialogRules: Dialog_Rules(playerid, response);

		case DialogTruckerJobMethod: Dialog_TruckerSelectJobMethod(playerid, response, listitem); // The work-dialog for truckers (shows the loads he can carry and lets the player choose the load)
		case DialogTruckerSelectLoad: Dialog_TruckerSelectLoad(playerid, response, listitem); // The load-selection dialog for truckers (shows the startlocations for the selected load and let the player choose his startlocation)
		case DialogTruckerStartLoc: Dialog_TruckerSelectStartLoc(playerid, response, listitem); // The start-location dialog for truckers (shows the endlocations for the selected load and let the player choose his endlocation)
		case DialogTruckerEndLoc: Dialog_TruckerSelectEndLoc(playerid, response, listitem); // The end-location dialog for truckers (processes the selected endlocation and starts the job)

		case DialogBusJobMethod: Dialog_BusSelectJobMethod(playerid, response, listitem); // The work-dialog for busdrivers (process the options to choose own busroute or auto-assigned busroute)
		case DialogBusSelectRoute: Dialog_BusSelectRoute(playerid, response, listitem); // Choose the busroute and start the job

		case DialogCourierSelectQuant: Dialog_CourierSelectQuant(playerid, response, listitem);

		case DialogBike: Dialog_Bike(playerid, response, listitem); // The bike-dialog
		case DialogCar: Dialog_Car(playerid, response, listitem); // The car-dialog (which uses a split dialog structure)
		case DialogPlane: Dialog_Plane(playerid, response, listitem); // The plane-dialog (which uses a split dialog structure)
		case DialogTrailer: Dialog_Trailer(playerid, response, listitem); // The trailer-dialog (which uses a split dialog structure)
		case DialogBoat: Dialog_Boat(playerid, response, listitem); // The boat-dialog
		case DialogNeon: Dialog_Neon(playerid, response, listitem); // The neon-dialog

		case DialogRentCarClass: Dialog_RentProcessClass(playerid, response, listitem); // The player chose a vehicleclass from where he can rent a vehicle
		case DialogRentCar: Dialog_RentCar(playerid, response, listitem); // The player chose a vehicle from the list of vehicles from the vehicleclass he chose before

		case DialogPlayerCommands: Dialog_PlayerCommands(playerid, response, listitem); // Displays all commands in a split-dialog structure
		case DialogPrimaryCarColor: Dialog_PrimaryCarColor(playerid, response, listitem);
		case DialogSedundaryCarColor: Dialog_SedundaryCarColor(playerid, response, listitem);

		case DialogWeather: Dialog_Weather(playerid, response, listitem); // The weather dialog
		case DialogCarOption: Dialog_CarOption(playerid, response, listitem); // The caroption dialog

		case DialogSelectConvoy: Dialog_SelectConvoy(playerid, response, listitem);

		case DialogHouseMenu: Dialog_HouseMenu(playerid, response, listitem); // Process the main housemenu
		case DialogUpgradeHouse: Dialog_UpgradeHouse(playerid, response, listitem); // Process the house-upgrade menu
		case DialogGoHome: Dialog_GoHome(playerid, response, listitem); // Port to one of your houses
		case DialogHouseNameChange: Dialog_ChangeHouseName(playerid, response, inputtext); // Change the name of your house
		case DialogSellHouse: Dialog_SellHouse(playerid, response); // Sell the house
		case DialogBuyCarClass: Dialog_BuyCarClass(playerid, response, listitem); // The player chose a vehicleclass from where he can buy a vehicle
		case DialogBuyCar: Dialog_BuyCar(playerid, response, listitem); // The player chose a vehicle from the list of vehicles from the vehicleclass he chose before
		case DialogSellCar: Dialog_SellCar(playerid, response, listitem);
		case DialogBuyInsurance: Dialog_BuyInsurance(playerid, response);
		case DialogGetCarSelectHouse: Dialog_GetCarSelectHouse(playerid, response, listitem);
		case DialogGetCarSelectCar: Dialog_GetCarSelectCar(playerid, response, listitem);
		case DialogUnclampVehicles: Dialog_UnclampVehicles(playerid, response);

		case DialogCreateBusSelType: Dialog_CreateBusSelType(playerid, response, listitem);
		case DialogBusinessMenu: Dialog_BusinessMenu(playerid, response, listitem);
		case DialogGoBusiness: Dialog_GoBusiness(playerid, response, listitem);
		case DialogBusinessNameChange: Dialog_ChangeBusinessName(playerid, response, inputtext); // Change the name of your business
		case DialogSellBusiness: Dialog_SellBusiness(playerid, response); // Sell the business
        case DialogBankPasswordRegister: Dialog_BankPasswordRegister(playerid, response, inputtext);
		case DialogBankPasswordLogin: Dialog_BankPasswordLogin(playerid, response, inputtext);
		case DialogBankOptions: Dialog_BankOptions(playerid, response, listitem);
		case DialogBankDeposit: Dialog_BankDeposit(playerid, response, inputtext);
		case DialogBankWithdraw: Dialog_BankWithdraw(playerid, response, inputtext);
		case DialogBankTransferMoney: Dialog_BankTransferMoney(playerid, response, inputtext);
		case DialogBankTransferName: Dialog_BankTransferName(playerid, response, inputtext);
		case DialogBankCancel: Dialog_BankCancel(playerid, response);
		
		case DialogHelpItemChosen: Dialog_HelpItemChosen(playerid, response, listitem);
		case DialogHelpItem: Dialog_HelpItem(playerid, response);

		case DialogOldPassword: Dialog_OldPassword(playerid, response, inputtext);
		case DialogNewPassword: Dialog_NewPassword(playerid, response, inputtext);
		case DialogConfirmPassword: Dialog_ConfirmPassword(playerid, response);
	}

    return 1;
}
Reply
#4

New errors:
Код:
[13:55:48] [debug] Server crashed due to an unknown error
[13:55:48] [debug] Native backtrace:
[13:55:48] [debug] #0 b744931b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[13:55:48] [debug] #1 b74437c2 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[13:55:48] [debug] #2 b74443ac in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[13:55:48] [debug] #3 b7444856 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[13:55:48] [debug] #4 b7448f6c in ?? () from plugins/crashdetect.so
[13:55:48] [debug] #5 b77bf600 in ?? ()
[13:55:48] [debug] #6 b752b577 in gsignal () from /lib/libc.so.6
[13:55:48] [debug] #7 b752e962 in abort () from /lib/libc.so.6
[13:55:48] [debug] #8 b7524767 in __assert_fail () from /lib/libc.so.6
[13:55:48] [debug] #9 080972b8 in ?? () from samp47180
[13:55:48] [debug] #10 080ca511 in ?? () from samp47180
[13:55:48] [debug] #11 080acd9b in ?? () from samp47180
[13:55:48] [debug] #12 080b2dbd in ?? () from samp47180
[13:55:48] [debug] #13 080b1687 in ?? () from samp47180
[13:55:48] [debug] #14 b7517c96 in __libc_start_main () from /lib/libc.so.6
[13:55:48] [debug] #15 0804b521 in ?? () from samp47180
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)