[Help] Not saving

Newbie Spellweaver
Joined
Nov 20, 2013
Messages
75
Reaction score
2
Errors in the current!


Example :
He created the character was killed, loot dropped out, I go to the main menu, the loot with them, for the murder of zombies - the experience is not counted.

help improve the code where necessary?
 
Re: No conservation! please

Are you using the Codex source?

I had the same problem with this source, was easily fixed with a bit of searching the code. Just trying to remember what was the cause on mine.
 
Upvote 0
Re: No conservation! please

[QUOTE = GetRektBambi; 8543518]? Используете ли вы источник Кодекса Я была такая же проблема с этим источником, легко фиксируется с немного поиска код. Просто пытаюсь вспомнить, что было причиной на шахте. [/ QUOTE]



------------------------------------------------
source HispanoZ, from Codex also.
 
Upvote 0
What is the mapID number you are trying to update player on?

Goto you DB -> WarZ -> dbo -> Functions -> WZ_Char_SRV_SetStatus

Check this out
if @in_MapID = 1
update UsersChars set
GamePos=@in_GamePos,
GameFlags=@in_GameFlags,
Alive=@in_Alive,
Health=@in_Health,
Food=@in_Hunger,
Water=@in_Thirst,
Toxic=@in_Toxic,
TimePlayed=@in_TimePlayed,
LastUpdateDate=GETDATE(),
XP=@in_XP,
Reputation=@in_Reputation,
Stat00=@in_Stat00,
Stat01=@in_Stat01,
Stat02=@in_Stat02,
Stat03=@in_Stat03,
Stat04=@in_Stat04,
Stat05=@in_Stat05
where CharID=@in_CharID
else if @in_MapID = 2
update UsersChars set
GamePos=@in_GamePos,
GameFlags=@in_GameFlags,
Alive=@in_Alive,
Health=@in_Health,
Food=@in_Hunger,
Water=@in_Thirst,
Toxic=@in_Toxic,
TimePlayed=@in_TimePlayed,
LastUpdateDate=GETDATE(),
XP=@in_XP,
Reputation=@in_Reputation,
Stat00=@in_Stat00,
Stat01=@in_Stat01,
Stat02=@in_Stat02,
Stat03=@in_Stat03,
Stat04=@in_Stat04,
Stat05=@in_Stat05
where CharID=@in_CharID
else if @in_MapID = 3
update UsersChars set
GamePos2=@in_GamePos,
...

Make sure the mapID of the map you are trying to update player is active within this check.
This was also an issue for me that solved the problem similar to yours.
 
Upvote 0
Go into source and search for your map id, e.g MAPID_WZ_Colorado.. then when you find one, right click, Goto Declaration, then hover your mouse over the mapid it will tell you via a hint the map id. Then check the above function that your mapid is valid for the function.
 
Upvote 0
The problem can be in the config, I can not fix the error.

REMOVED

replace all for this

Code:
<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
	<!-- application specific settings -->
	<appSettings>
		<add key="WO_Region" value="EN"/>
	</appSettings>
	<connectionStrings/>
	<system.webServer> 
		<httpProtocol allowKeepAlive="true" />
	</system.webServer> 
	<system.web>
	<httpRuntime enableVersionHeader="false"/>
	<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
	<compilation debug="false">
		<assemblies>
			<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
		</assemblies>
	</compilation>
	<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
	<authentication mode="None"/>
	<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.


            NOTE: default value was "RemoteOnly" and whole section was commited
        -->


        <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
	</system.web>
</configuration>
 
Upvote 0
Back