SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 04/07/2018, 08:01 AM   #1
NinjaChicken
Huge Clucker
 
NinjaChicken's Avatar
 
Join Date: Dec 2011
Posts: 461
Reputation: 22
Angry Server Crashing After Upgrading To Windows Server 2016

Basically last night the call was made to update the dedicated server from Windows server 2012 R2 to windows server 2016 and ever since the server will run for an hour at most then crash itself, below are the logs and such

Code:
[12:00:57] [debug] Server crashed while executing nlrp.amx
[12:00:57] [debug] AMX backtrace:
[12:00:57] [debug] #0 native fwrite () from samp-server.exe
[12:00:57] [debug] #1 004ac39c in Misc_Save () at ./includes/core/miscload.pwn:180
[12:00:57] [debug] #2 0002ecf8 in public SyncTime () at ./includes/timers.pwn:325
[12:00:58] [debug] Native backtrace:
[12:00:58] [debug] #0 77a5e383 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[12:00:58] [debug] #1 0049f478 in ?? () from samp-server.exe
[12:00:58] [debug] #2 0040531e in ?? () from samp-server.exe
[12:00:58] [debug] Registers:
[12:00:58] [debug] EAX: 00000024 EBX: 00000052 ECX: 00000020 EDX: 002c4000
[12:00:58] [debug] ESI: 00000000 EDI: 1d2ec3c0 EBP: 00000000 ESP: 0019fb84
[12:00:58] [debug] EIP: 0040531e EFLAGS: 00010202
[12:00:58] [debug] Stack:
[12:00:58] [debug] ESP+00000000: 00000052 00000000 1d2ec3b0 0019fbac
[12:00:58] [debug] ESP+00000020: 028f7320 0000000c 0019fcdc 004010b6
[12:00:58] [debug] ESP+00000040: 028f7320 000000c5 0019fd50 1d2ec3b0
[12:00:58] [debug] ESP+00000060: c0000139 028f7320 00000000 0c9a8adc
[12:00:58] [debug] ESP+00000080: 6ae088bc 00000009 00000009 00000000
[12:00:58] [debug] ESP+000000a0: 77a74979 6ad489cb bb9977a4 00000018
[12:00:58] [debug] ESP+000000c0: 0019fc50 02736660 00000000 00000018
[12:00:58] [debug] ESP+000000e0: 000001d2 00020000 00020000 000207d0
[12:00:58] [debug] ESP+00000100: 00000000 bb997748 0000ffff 00000000
[12:00:58] [debug] ESP+00000120: 1d2ec3b0 0019fd50 00000000 028f7320
[12:00:58] [debug] ESP+00000140: 0019fcd0 02736660 77f6ca33 0019fe9c
[12:00:58] [debug] ESP+00000160: 000000c5 0019fd50 1d2ec3b0 0019fd48
[12:00:58] [debug] ESP+00000180: 1d2ec3b0 0000032c 0000032c 0273ee00
[12:00:58] [debug] ESP+000001a0: 00000000 10021e00 0b87e290 0c9a8b0c
[12:00:58] [debug] ESP+000001c0: 0c9a8a04 0019fdac 6afba767 00000000
[12:00:58] [debug] ESP+000001e0: 00000000 02d569ac 0040174f 028f7320
[12:00:58] [debug] ESP+00000200: 028f7320 00000001 00000000 00000000
[12:00:58] [debug] ESP+00000220: 028f7320 0019fdbc 0019fdbc 6afbd65a
[12:00:58] [debug] ESP+00000240: 028f7320 0019fe10 0000032c 00000000
[12:00:58] [debug] ESP+00000260: 00000000 0019fe10 00000000 02840048
[12:00:58] [debug] ESP+00000280: 0000032c 00687f88 0284a8b8 02bc5858
[12:00:58] [debug] ESP+000002a0: 00000000 3b058ea7 00492cab 00000000
[12:00:58] [debug] ESP+000002c0: 00010101 00000064 00001e61 000001dc
[12:00:58] [debug] ESP+000002e0: 00003531 004ca020 004ca01c 002c1000
[12:00:58] [debug] ESP+00000300: 004a3af4 004c0558 ffffffff 004a1d61
[12:00:58] [debug] ESP+00000320: ffffffff 004a3593 00000001 00681398
[12:00:58] [debug] ESP+00000340: 000023f0 00000002 00000000 00000000
[12:00:58] [debug] ESP+00000360: 00000000 00000000 00000000 00000000
[12:00:58] [debug] ESP+00000380: 00000000 00000000 00000000 00000000
[12:00:58] [debug] ESP+000003a0: 00000000 00000000 00000000 00000000
[12:00:58] [debug] ESP+000003c0: 00000000 004a343f 004a3427 004a3427
[12:00:58] [debug] ESP+000003e0: 00000000 0019feb8 0019f57c 0019ffcc
[12:00:58] [debug] Loaded modules:
[12:00:58] [debug] 00400000 - 0051f000 samp-server.exe
[12:00:58] [debug] 77a20000 - 77ba3000 ntdll.dll
[12:00:58] [debug] 77350000 - 77430000 KERNEL32.DLL
[12:00:58] [debug] 75f20000 - 760c1000 KERNELBASE.dll
[12:00:58] [debug] 748c0000 - 75c94000 SHELL32.dll
[12:00:58] [debug] 76b80000 - 76c3e000 msvcrt.dll
[12:00:58] [debug] 74740000 - 74776000 cfgmgr32.dll
[12:00:58] [debug] 76c40000 - 771ae000 windows.storage.dll
[12:00:58] [debug] 75ca0000 - 75eb1000 combase.dll
[12:00:58] [debug] 76390000 - 76470000 ucrtbase.dll
[12:00:58] [debug] 776d0000 - 77791000 RPCRT4.dll
[12:00:58] [debug] 744f0000 - 7450f000 SspiCli.dll
[12:00:58] [debug] 744e0000 - 744ea000 CRYPTBASE.dll
[12:00:58] [debug] 76470000 - 764ca000 bcryptPrimitives.dll
[12:00:58] [debug] 760d0000 - 76111000 sechost.dll
[12:00:58] [debug] 77680000 - 776c5000 powrprof.dll
[12:00:58] [debug] 76190000 - 76207000 advapi32.dll
[12:00:58] [debug] 74780000 - 747c6000 shlwapi.dll
[12:00:58] [debug] 76b50000 - 76b7b000 GDI32.dll
[12:00:58] [debug] 774b0000 - 7760a000 gdi32full.dll
[12:00:58] [debug] 778c0000 - 77a1f000 USER32.dll
[12:00:58] [debug] 76a40000 - 76a55000 win32u.dll
[12:00:58] [debug] 77340000 - 7734d000 kernel.appcore.dll
[12:00:58] [debug] 746b0000 - 74738000 shcore.dll
[12:00:58] [debug] 764d0000 - 764df000 profapi.dll
[12:00:58] [debug] 6ed50000 - 6ed58000 WSOCK32.dll
[12:00:58] [debug] 76120000 - 76183000 WS2_32.dll
[12:00:58] [debug] 73b70000 - 73b94000 WINMM.dll
[12:00:58] [debug] 73b40000 - 73b63000 WINMMBASE.dll
[12:00:58] [debug] 77890000 - 778b5000 IMM32.DLL
[12:00:58] [debug] 6afa0000 - 6aff0000 crashdetect.dll
[12:00:58] [debug] 6af30000 - 6af99000 MSVCP100.dll
[12:00:58] [debug] 6ae70000 - 6af2e000 MSVCR100.dll
[12:00:58] [debug] 6ae00000 - 6ae67000 streamer.dll
[12:00:58] [debug] 6ad90000 - 6adfd000 MSVCP140.dll
[12:00:58] [debug] 6b290000 - 6b2a5000 VCRUNTIME140.dll
[12:00:58] [debug] 6ad40000 - 6ad8e000 mysql.dll
[12:00:58] [debug] 6b270000 - 6b28c000 log-core.dll
[12:00:58] [debug] 6ac70000 - 6ad3d000 libmariadb.dll
[12:00:58] [debug] 771c0000 - 7733d000 CRYPT32.dll
[12:00:58] [debug] 777f0000 - 777fe000 MSASN1.dll
[12:00:58] [debug] 71620000 - 7162a000 Secur32.dll
[12:00:58] [debug] 74310000 - 74322000 napinsp.dll
[12:00:58] [debug] 742c0000 - 7430e000 mswsock.dll
[12:00:58] [debug] 74240000 - 742bd000 DNSAPI.dll
[12:00:58] [debug] 76620000 - 76627000 NSI.dll
[12:00:58] [debug] 744b0000 - 744df000 IPHLPAPI.DLL
[12:00:58] [debug] 74230000 - 7423c000 winrnr.dll
[12:00:58] [debug] 74210000 - 74224000 NLAapi.dll
[12:00:58] [debug] 71bf0000 - 71bf8000 rasadhlp.dll
[12:00:58] [debug] 6ac60000 - 6ac6d000 gvar.dll
[12:00:58] [debug] 10000000 - 1000f000 sscanf.dll
[12:00:58] [debug] 6ac50000 - 6ac5d000 Whirlpool.dll
[12:00:58] [debug] 6ac40000 - 6ac45000 nativechecker.dll
[12:00:58] [debug] 71ba0000 - 71be9000 fwpuclnt.dll
[12:00:58] [debug] 73660000 - 7367b000 bcrypt.dll
[12:00:58] [debug] 74160000 - 741d5000 uxtheme.dll
[12:00:58] [debug] 747d0000 - 748bc000 ole32.dll
[12:00:58] [debug] 733f0000 - 7353f000 PROPSYS.dll
[12:00:58] [debug] 745b0000 - 74645000 OLEAUT32.dll
[12:00:58] [debug] 77430000 - 774ab000 msvcp_win.dll
[12:00:58] [debug] 77800000 - 77884000 clbcatq.dll
[12:00:58] [debug] 6b750000 - 6b78d000 edputil.dll
[12:00:58] [debug] 73250000 - 733e5000 urlmon.dll
[12:00:58] [debug] 73020000 - 7324b000 iertutil.dll
Code:
// Task Name: SyncTime()
// TickRate: 60 Secs
task SyncTime[60000]()
{
	PlantTimer();

	new reports, priority;
	for(new i=0;i<MAX_REPORTS;i++) { if(Reports[i][BeingUsed] == 1) reports++; if(Reports[i][ReportPriority] <= 2 && Reports[i][BeingUsed] == 1) priority++; }
	if(reports >= 5)
	{
		format(szMiscArray, 80, "There are currently %d reports pending. (%d priority)", reports, priority);
	 	ABroadCast(COLOR_LIGHTRED, szMiscArray, 2);
	}
	
	for(new i = 0; i < MAX_ITEMS; i++) // Moved from 1000 to 60000 check - Jingles
	{
	    if(Price[i] != ShopItems[i][sItemPrice])
	    {
	        format(szMiscArray, 128, "Item: %d - Price: %d - Reset: %d", i, ShopItems[i][sItemPrice], Price[i]);
	        Log("error.log", szMiscArray);
	        ShopItems[i][sItemPrice] = Price[i];
	    }
	}

	if(zombieevent) {

		foreach(new i: Player)  {
			SaveZombieStats(i);
		}
	}
	new tmphour, tmpminute, tmpsecond;
	gettime(tmphour, tmpminute, tmpsecond);
	FixHour(tmphour);
	tmphour = shifthour;

	if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
	{
		if(tmphour == 0 && ghour == 23)
		{
			//CallLocalFunction("InactiveResourceCheck", "");

			/*
			new month, day, year;
			getdate(year,month,day);
			if(month == 4 && (day == 25 || day == 26)) // NGG B-Day 2015
			{
				foreach(Player, i)
				{
					PlayerInfo[i][pReceivedPrize] = 0;
				}
				mysql_tquery(MainPipeline, "UPDATE `accounts` SET `ReceivedPrize` = 0", false, "OnQueryFinish", "i", SENDDATA_THREAD);
			}*/
		}
	    if(tmphour == 3 || tmphour == 6 || tmphour == 9 || tmphour == 12 || tmphour == 15 || tmphour == 18 || tmphour == 21 || tmphour == 0) PrepareLotto();
		else
		{
		    if(SpecLotto) {
		        format(szMiscArray, sizeof(szMiscArray), "Special Lottery: Remember to buy a lotto ticket at a 24/7. Next drawing is at %s. The total Jackpot is $%s", ConvertToTwelveHour(tmphour), number_format(Jackpot));
				SendClientMessageToAllEx(COLOR_WHITE, szMiscArray);
		        format(szMiscArray, sizeof(szMiscArray), "Special Prize: %s", LottoPrize);
				SendClientMessageToAllEx(COLOR_WHITE, szMiscArray);
		    }
		    else {
		    	format(szMiscArray, sizeof(szMiscArray), "Lottery: Remember to buy a lotto ticket at a 24/7. Next drawing is at %s. The total Jackpot is $%s", ConvertToTwelveHour(tmphour), number_format(Jackpot));
				SendClientMessageToAllEx(COLOR_WHITE, szMiscArray);
			}
		}
		for(new iGroupID; iGroupID < MAX_GROUPS; iGroupID++)
		{
			MemberCount(iGroupID);
			if(arrGroupData[iGroupID][g_iGroupType] == GROUP_TYPE_GOV && arrGroupData[iGroupID][g_iAllegiance] == 1)
			{
				format(szMiscArray, sizeof(szMiscArray), "The tax vault is at $%s", number_format(Tax));
				GroupPayLog(iGroupID, szMiscArray);
			}
			else if(arrGroupData[iGroupID][g_iGroupType] == GROUP_TYPE_GOV && arrGroupData[iGroupID][g_iAllegiance] == 2)
			{
				format(szMiscArray, sizeof(szMiscArray), "The tax vault is at $%s", number_format(TRTax));
				GroupPayLog(iGroupID, szMiscArray);
			}
			else
			{
				format(szMiscArray, sizeof(szMiscArray), "The faction vault is at $%s.", number_format(arrGroupData[iGroupID][g_iBudget]));
				GroupPayLog(iGroupID, szMiscArray);
			}
			if(arrGroupData[iGroupID][g_iGroupType] == GROUP_TYPE_LEA || arrGroupData[iGroupID][g_iGroupType] == GROUP_TYPE_MEDIC || arrGroupData[iGroupID][g_iGroupType] == GROUP_TYPE_JUDICIAL || arrGroupData[iGroupID][g_iGroupType] == GROUP_TYPE_TAXI || arrGroupData[iGroupID][g_iGroupType] == GROUP_TYPE_TOWING)
			{
				if(arrGroupData[iGroupID][g_iBudgetPayment] > 0)
				{
					if(Tax > arrGroupData[iGroupID][g_iBudgetPayment] && arrGroupData[iGroupID][g_iAllegiance] == 1)
					{
						Tax -= arrGroupData[iGroupID][g_iBudgetPayment];
						arrGroupData[iGroupID][g_iBudget] += arrGroupData[iGroupID][g_iBudgetPayment];
						format(szMiscArray, sizeof(szMiscArray), "SA Gov Paid $%s to %s budget fund.", number_format(arrGroupData[iGroupID][g_iBudgetPayment]), arrGroupData[iGroupID][g_szGroupName]);
						GroupPayLog(iGroupID, szMiscArray);
						Misc_Save();// THIS IS LINE 325
						SaveGroup(iGroupID);
						for(new z; z < MAX_GROUPS; z++)
						{
							if(arrGroupData[z][g_iAllegiance] == 1)
							{
								if(arrGroupData[z][g_iGroupType] == GROUP_TYPE_GOV)
								{
									format(szMiscArray, sizeof(szMiscArray), "SA Gov Paid $%s to %s budget fund.", number_format(arrGroupData[iGroupID][g_iBudgetPayment]), arrGroupData[iGroupID][g_szGroupName]);
									GroupPayLog(z, szMiscArray);
									break;
								}
							}
						}
					}
					else if(TRTax > arrGroupData[iGroupID][g_iBudgetPayment] && arrGroupData[iGroupID][g_iAllegiance] == 2)
					{
						TRTax -= arrGroupData[iGroupID][g_iBudgetPayment];
						arrGroupData[iGroupID][g_iBudget] += arrGroupData[iGroupID][g_iBudgetPayment];
						format(szMiscArray, sizeof(szMiscArray), "NE Gov Paid $%s to %s budget fund.", number_format(arrGroupData[iGroupID][g_iBudgetPayment]), arrGroupData[iGroupID][g_szGroupName]);
						GroupPayLog(iGroupID, szMiscArray);
						Misc_Save();
						SaveGroup(iGroupID);
						for(new z; z < MAX_GROUPS; z++)
						{
							if(arrGroupData[z][g_iAllegiance] == 2)
							{
								if(arrGroupData[z][g_iGroupType] == GROUP_TYPE_GOV)
								{
									format(szMiscArray, sizeof(szMiscArray), "NE Gov Paid $%s to %s budget fund.", number_format(arrGroupData[iGroupID][g_iBudgetPayment]), arrGroupData[iGroupID][g_szGroupName]);
									GroupPayLog(z, szMiscArray);
									break;
								}
							}
						}
					}
					else
					{
						format(szMiscArray, sizeof(szMiscArray), "Warning: The Government Vault has insufficient funds to fund %s.", arrGroupData[iGroupID][g_szGroupName]);
						SendGroupMessage(GROUP_TYPE_GOV, COLOR_RED, szMiscArray);
					}
				}
				for(new iDvSlotID = 0; iDvSlotID < MAX_DYNAMIC_VEHICLES; iDvSlotID++)
				{
					if(DynVehicleInfo[iDvSlotID][gv_igID] != INVALID_GROUP_ID && DynVehicleInfo[iDvSlotID][gv_igID] == iGroupID)
					{
						if(DynVehicleInfo[iDvSlotID][gv_iModel] != 0 && (400 < DynVehicleInfo[iDvSlotID][gv_iModel] < 612))
						{
							if(arrGroupData[iGroupID][g_iBudget] >= DynVehicleInfo[iDvSlotID][gv_iUpkeep])
							{
								arrGroupData[iGroupID][g_iBudget] -= DynVehicleInfo[iDvSlotID][gv_iUpkeep];
								format(szMiscArray, sizeof(szMiscArray), "Vehicle ID %d (Slot ID %d) Maintainence fee cost $%s to %s's budget fund.",DynVehicleInfo[iDvSlotID][gv_iSpawnedID], iDvSlotID, number_format(DynVehicleInfo[iDvSlotID][gv_iUpkeep]), arrGroupData[iGroupID][g_szGroupName]);
								GroupPayLog(iGroupID, szMiscArray);
							}
							else
							{
								DynVehicleInfo[iDvSlotID][gv_iDisabled] = 1;
								DynVeh_Save(iDvSlotID);
								DynVeh_Spawn(iDvSlotID);
							}
						}
					}
				}
				SaveGroup(iGroupID);
				for(new cratebox = 0; cratebox < MAX_CRATES; cratebox++) {
					if(CrateBox[cratebox][cbActive]) {
						SaveCrate(cratebox);
					}
				}
				for(new facility = 0; facility < MAX_CRATE_FACILITY; facility++) {
					if(CrateFacility[facility][cfActive]) {
						SyncFacility(facility);
					}
				}
			}
		}

		WeatherCalling += random(5) + 1;
		#if defined zombiemode
  		if(WeatherCalling > 20)
		{
  			WeatherCalling = 1;
	    	gWeather = random(19) + 1;
		    if(gWeather == 1 || gWeather == 8 || gWeather == 9) gWeather=1;
		}
		#else
		if(WeatherCalling > 20)
		{
 			WeatherCalling = 1;
   			gWeather = random(19) + 1;
   			gWeather = 1;
		    if(gWeather == 1 || gWeather == 8 || gWeather == 9) gWeather=1;

		}
		#endif

		ghour = tmphour;
		TotalUptime += 1;
		GiftAllowed = 1;

		new bmonth, bday, byear;
		new year, month, day;
		getdate(year, month, day);

		new ttTime = CalculateWorldGameTime(hour, minuite);

		format(szMiscArray, sizeof(szMiscArray), "The time is now %s. ((ST: %s))", ConvertToTwelveHour(ttTime), ConvertToTwelveHour(tmphour));
		SendClientMessageToAllEx(COLOR_WHITE, szMiscArray);
		new query[300];
		mysql_format(MainPipeline, query, sizeof(query), "SELECT b.shift, b.needs_%e, COUNT(DISTINCT s.id) as ShiftCount FROM cp_shift_blocks b LEFT JOIN cp_shifts s ON b.shift_id = s.shift_id AND s.date = '%d-%02d-%02d' AND s.status >= 2 AND s.type = 1 WHERE b.time_start = '%02d:00:00' AND b.type = 1 GROUP BY b.shift, b.needs_%e", GetWeekday(), year, month, day, tmphour, GetWeekday());
		mysql_tquery(MainPipeline, query, "GetShiftInfo", "is", INVALID_PLAYER_ID, szMiscArray);
		foreach(new i: Player)
		{
			if(PlayerInfo[i][pAdmin] >= 2)
			{
				if(tmphour == 0) ReportCount[i] = 0;
				ReportHourCount[i] = 0;
			}
			if(PlayerInfo[i][pWatchdog])
			{
				if(tmphour == 0) WDReportCount[i] = 0;
				WDReportHourCount[i] = 0;
			}
			if(PlayerInfo[i][pLevel] <= 5) SendClientMessageEx(i, COLOR_LIGHTBLUE, "Need to travel somewhere and don't have wheels? Use '/service taxi' to call a cab!");
			if(PlayerInfo[i][pDonateRank] >= 3)
			{
				sscanf(PlayerInfo[i][pBirthDate], "p<->iii", byear, bmonth, bday);
				if(month == bmonth && day == bday)
				{
					if(PlayerInfo[i][pLastBirthday] >= gettime()-86400 || gettime() >= PlayerInfo[i][pLastBirthday]+28512000)
					{
						SetPVarInt(i, "pBirthday", 1);
						PlayerInfo[i][pLastBirthday] = gettime();
						mysql_format(MainPipeline, query, sizeof(query), "UPDATE `accounts` SET `LastBirthday`=%d WHERE `Username` = '%e'", PlayerInfo[i][pLastBirthday], GetPlayerNameExt(i));
						mysql_tquery(MainPipeline, query, "OnQueryFinish", "ii", SENDDATA_THREAD, i);
					}
				}
				else
				{
					DeletePVar(i, "pBirthday");
				}
				if(GetPVarInt(i, "pBirthday") == 1)
				{
					if(PlayerInfo[i][pReceivedBGift] != 1)
					{
						PlayerInfo[i][pReceivedBGift] = 1;
						GiftPlayer(MAX_PLAYERS, i);
						format(szMiscArray, sizeof(szMiscArray), "Happy Birthday %s! You have received a free gift!", GetPlayerNameEx(i));
						SendClientMessageEx(i, COLOR_YELLOW, szMiscArray);
						format(szMiscArray, sizeof(szMiscArray), "%s(%d) has received a free gift for his birthday (%s) (Payday).", GetPlayerNameEx(i), GetPlayerSQLId(i), PlayerInfo[i][pBirthDate]);
						Log("logs/birthday.log", szMiscArray);
						SendClientMessageEx(i, COLOR_YELLOW, "Gold VIP: You will get x2 paycheck as a birthday gift today.");
						OnPlayerStatsUpdate(i);
					}
				}
			}
		}
		new iTempHour = CalculateWorldGameTime(hour, minuite);
		SetWorldTime(iTempHour);

		if(tmphour == 0) CountCitizens();

		for(new x = 0; x < MAX_POINTS; x++)
		{
			if(strcmp(DynPoints[x][poName], "NULL", true) != 0) {
				if(DynPoints[x][poTimer] > 0) DynPoints[x][poTimer]--, SavePoint(x);
				if(!DynPoints[x][poTimer] && !DynPoints[x][poCapturable] && !DynPoints[x][poLocked]) {
					format(szMiscArray, sizeof(szMiscArray), "%s has become available for capture.", DynPoints[x][poName]);
					SendClientMessageToAllEx(COLOR_YELLOW, szMiscArray);
					DynPoints[x][poCapturable] = 1;
					SavePoint(x);
				}
				if((0 <= DynPoints[x][poCaptureGroup] < MAX_GROUPS) && DynPoints[x][poAmountHour] > 0) {
					format(szMiscArray, sizeof(szMiscArray), "Your family has recieved %s %s for owning %s.", number_format(DynPoints[x][poAmountHour]), PointTypeToName(DynPoints[x][poType]), DynPoints[x][poName]);
					foreach(new i: Player)
					{
						if(PlayerInfo[i][pMember] == DynPoints[x][poCaptureGroup]) {
							SendClientMessageEx(i, COLOR_LIGHTBLUE, szMiscArray);
						}
					}
					if(DynPoints[x][poType] == 0) arrGroupData[DynPoints[x][poCaptureGroup]][g_iMaterials] += DynPoints[x][poAmountHour];
					if((1 <= DynPoints[x][poType] < 5)) arrGroupData[DynPoints[x][poCaptureGroup]][g_iDrugs][DynPoints[x][poType]-1] += DynPoints[x][poAmountHour];
				}
			}
		}
Code:
stock Misc_Save() {

	new
		szFileStr[50],
		File: iFileHandle = fopen("serverConfig.ini", io_write);

	ini_SetInteger(iFileHandle, szFileStr, "RaceLaps", RaceTotalLaps);// THIS IS LINE 180
	ini_SetInteger(iFileHandle, szFileStr, "RaceJoins", TotalJoinsRace);
	ini_SetInteger(iFileHandle, szFileStr, "Jackpot", Jackpot);
	ini_SetInteger(iFileHandle, szFileStr, "Tax", Tax);
	ini_SetInteger(iFileHandle, szFileStr, "TaxVal", TaxValue);
	ini_SetInteger(iFileHandle, szFileStr, "VIPM", VIPM);
	ini_SetInteger(iFileHandle, szFileStr, "LoginCount", TotalLogin);
	ini_SetInteger(iFileHandle, szFileStr, "ConnCount", TotalConnect);
	ini_SetInteger(iFileHandle, szFileStr, "ABanCount", TotalAutoBan);
	ini_SetInteger(iFileHandle, szFileStr, "RegCount", TotalRegister);
	ini_SetInteger(iFileHandle, szFileStr, "MaxPCount", MaxPlayersConnected);
	ini_SetInteger(iFileHandle, szFileStr, "MaxPDay", MPDay);
	ini_SetInteger(iFileHandle, szFileStr, "MaxPMonth", MPMonth);
	ini_SetInteger(iFileHandle, szFileStr, "MaxPYear", MPYear);
	ini_SetInteger(iFileHandle, szFileStr, "Uptime", TotalUptime);
	ini_SetInteger(iFileHandle, szFileStr, "BoxWins", Titel[TitelWins]);
	ini_SetInteger(iFileHandle, szFileStr, "BoxLosses", Titel[TitelLoses]);
	ini_SetInteger(iFileHandle, szFileStr, "SpecTimer", SpecTimer);
	ini_SetInteger(iFileHandle, szFileStr, "TRTax", TRTax);
	ini_SetInteger(iFileHandle, szFileStr, "TRTaxVal", TRTaxValue);
	ini_SetInteger(iFileHandle, szFileStr, "SpeedingTickets", SpeedingTickets);
	ini_SetInteger(iFileHandle, szFileStr, "FIFType", FIFType);
	ini_SetInteger(iFileHandle, szFileStr, "FIFEnabled", FIFEnabled);
	ini_SetInteger(iFileHandle, szFileStr, "FIFGP3", FIFGP3);
	ini_SetInteger(iFileHandle, szFileStr, "FIFTimeWarrior", FIFTimeWarrior);
	ini_SetFloat(iFileHandle, szFileStr, "FIFGambleX", FIFGamble[0]);
	ini_SetFloat(iFileHandle, szFileStr, "FIFGambleY", FIFGamble[1]);
	ini_SetFloat(iFileHandle, szFileStr, "FIFGambleZ", FIFGamble[2]);
	ini_SetInteger(iFileHandle, szFileStr, "FIFGThurs", FIFGThurs);
	if(iRewardPlay) {
		ini_SetInteger(iFileHandle, szFileStr, "RewardPlay", true);
	}
	if(iRewardBox) {

	    new
			Float: fObjectPos[3];

		GetDynamicObjectPos(iRewardObj, fObjectPos[0], fObjectPos[1], fObjectPos[2]);
	    ini_SetFloat(iFileHandle, szFileStr, "RewardPosX", fObjectPos[0]);
		ini_SetFloat(iFileHandle, szFileStr, "RewardPosY", fObjectPos[1]);
		ini_SetFloat(iFileHandle, szFileStr, "RewardPosZ", fObjectPos[2]);
	}
	ini_SetInteger(iFileHandle, szFileStr, "TicketsSold", TicketsSold);
	fclose(iFileHandle);
}
__________________
Crap that made me Giggle and Shit
Quote:
Originally Posted by Eminem 2ka9 View Post
My players walk like they pissed themselves, how do I set it to a normal walk style where they actually run fast and not like benders?
Quote:
Originally Posted by justsomeguy View Post
Did I just saw a prisoner with a goddamn katana? How did he smuggle that in!? Did he just shove that katana up his anus?
Owner and Operator Of www.nl-gaming.net

NinjaChicken is offline   Reply With Quote
Old 04/07/2018, 08:03 AM   #2
NinjaChicken
Huge Clucker
 
NinjaChicken's Avatar
 
Join Date: Dec 2011
Posts: 461
Reputation: 22
Default Re: Server Crashing After Upgrading To Windows Server 2016

Just found some more weird sh*t

Code:
[12:00:57] [log-core] exception 0XC0000005 (ACCESS_VIOLATION) from Vectored Exception Handler catched; shutting log-core down
Code:
[23:01:47] [ERROR] exception 0XC0000005 (ACCESS_VIOLATION) from Vectored Exception Handler catched; shutting log-core down
[23:10:28] [INFO] received Windows console close event; shutting log-core down
[02:01:48] [ERROR] exception 0XC0000005 (ACCESS_VIOLATION) from Vectored Exception Handler catched; shutting log-core down
[10:01:28] [ERROR] exception 0XC0000005 (ACCESS_VIOLATION) from Vectored Exception Handler catched; shutting log-core down
[11:00:32] [ERROR] exception 0XC0000005 (ACCESS_VIOLATION) from Vectored Exception Handler catched; shutting log-core down
[12:00:57] [ERROR] exception 0XC0000005 (ACCESS_VIOLATION) from Vectored Exception Handler catched; shutting log-core down
Before the update none of this happened and the server ran flawlessly
__________________
Crap that made me Giggle and Shit
Quote:
Originally Posted by Eminem 2ka9 View Post
My players walk like they pissed themselves, how do I set it to a normal walk style where they actually run fast and not like benders?
Quote:
Originally Posted by justsomeguy View Post
Did I just saw a prisoner with a goddamn katana? How did he smuggle that in!? Did he just shove that katana up his anus?
Owner and Operator Of www.nl-gaming.net

NinjaChicken is offline   Reply With Quote
Old 04/07/2018, 12:19 PM   #3
Freshncool
High-roller
 
Freshncool's Avatar
 
Join Date: Aug 2014
Location: Pakistan
Posts: 1,190
Reputation: 334
Default Re: Server Crashing After Upgrading To Windows Server 2016

[12:00:57] [debug] #0 native fwrite () from samp-server.exe

You're writing to an invalid file.
__________________
haha
Freshncool is online now   Reply With Quote
Old 04/07/2018, 02:31 PM   #4
NinjaChicken
Huge Clucker
 
NinjaChicken's Avatar
 
Join Date: Dec 2011
Posts: 461
Reputation: 22
Default Re: Server Crashing After Upgrading To Windows Server 2016

Nah, i just started windows server 2016, and the windows server 2012 R2 side by side clean installs, Exact same Visual C++ Dependencies, after 30 minutes the server on windows server 2016 crashed and the server on 2012 R2 is still running perfectly fine, They were identical servers identical files, exact same aside from operating system, Must just be a windows server 2016 issue
__________________
Crap that made me Giggle and Shit
Quote:
Originally Posted by Eminem 2ka9 View Post
My players walk like they pissed themselves, how do I set it to a normal walk style where they actually run fast and not like benders?
Quote:
Originally Posted by justsomeguy View Post
Did I just saw a prisoner with a goddamn katana? How did he smuggle that in!? Did he just shove that katana up his anus?
Owner and Operator Of www.nl-gaming.net

NinjaChicken is offline   Reply With Quote
Old 04/07/2018, 02:35 PM   #5
Calisthenics
Big Clucker
 
Join Date: May 2018
Posts: 164
Reputation: 20
Default Re: Server Crashing After Upgrading To Windows Server 2016

Actually, the fault is yours for not checking if file handle is valid to read from/write to a file. Wiki provides examples on how to do that to prevent server crashes.

Other than that, double-check if scriptfiles folder has correct permissions (readable/writable) and necessary folders inside scriptfiles have been created.
Calisthenics is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FPS drop after upgrading to windows 10 xTURBOx Everything and Nothing 13 27/02/2017 10:36 AM
0.3z server (windows) crashing 'randomly', and before crashdetect can detect anything kaisersouse Server Support 9 12/04/2016 02:17 PM
Disk drive broken ones upgrading to windows 8! Yves Everything and Nothing 15 27/10/2013 09:49 PM
Server objects transparant after upgrading to 0.3B Danny Help Archive 3 09/10/2010 12:49 PM
Windows VPS server crashing due to invalid names Bob_Mars Server Support 13 04/03/2010 11:27 PM


All times are GMT. The time now is 07:10 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.