-
[Snippet] Adding Player EXP
Here is how you can add player exp basically when you kill someone you will gain whatever set exp on kill.
Note this tutorial is for the ISS source if you have problems adding it to an older source post below.
Ok now open WarZ_Server.sln search for this code
Code:
targetPlr->killedBy = obj_ServerGravestone::KilledBy_Player;
Now below this add this code
Code:
obj_ServerPlayer * killerPlr = ((obj_ServerPlayer*)sourceObj);
gServerLogic.AddPlayerReward(killerPlr, RWD_PlayerKill);
Now once your done that search for this
Code:
enum EPlayerRewardID
Below superzombie exp add this
Code:
RWD_PlayerKill = 3,
now search for this
Code:
void CGameRewards::InitDefaultRewards()
once again under superzombie add this
Code:
SetReward(3, "PlayerKill", 0, 15, 0, 15);
Now compile and your good too go ps will give 15 exp to killer.
-
Re: [Snippet] Adding Player EXP
-
Re: [Snippet] Adding Player EXP
-
Re: [Snippet] Adding Player EXP
-
Re: [Snippet] Adding Player EXP
new exp by kill player
Thank you
-
Re: [Snippet] Adding Player EXP
-
Re: [Snippet] Adding Player EXP
Quote:
Error C2660: 'ServerGameLogic::AddPlayerReward' : function does not take 2 arguments
Well what happened?
-
Re: [Snippet] Adding Player EXP
-
Re: [Snippet] Adding Player EXP
FinalEnd, plz make a guide for exp by super_zombie
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Cryptopia
Well what happened?
Did you add it properly?, as it should have worked.
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
javaz97
FinalEnd, plz make a guide for exp by super_zombie
???
http://forum.ragezone.com/f791/tutor...p-drop-965499/
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
TheAlmightyLord
(Only InvasionMMO Source)
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
skyone
(Only InvasionMMO Source)
http://forum.ragezone.com/f791/tutor...4/#post7980305
-
Re: [Snippet] Adding Player EXP
Quote:
gServerLogic.AddPlayerReward(killedByPlr, RWD_PlayerKill, 0);
The function addplayerreward has 3 things:
Quote:
void ServerGameLogic::AddPlayerReward(obj_ServerPlayer* plr, EPlayerRewardID rewardID,int HeroItemID)
The third one is the hero item id, but you can set it to 0.
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
fredaikis
The function addplayerreward has 3 things:
The third one is the hero item id, but you can set it to 0.
guy show full code
-
Re: [Snippet] Adding Player EXP
its has to be like this:
Quote:
sprintf(plr2msg, "KILLED BY %s", killedByPlr->loadout_->Gamertag);
gServerLogic.AddPlayerReward(killedByPlr, RWD_PlayerKill,0);
to fix this error:
Quote:
Error C2660: 'ServerGameLogic::AddPlayerReward' : function does not take 2 arguments
-
Re: [Snippet] Adding Player EXP
Yes it does didn't i say above on op to have it liked that? sec ill check hope so lol.
-
Re: [Snippet] Adding Player EXP
Good job, guy sharing something on RaGEZONE after this much leeching from community :)
-
Re: [Snippet] Adding Player EXP
Well sharing is caring :D
-
Re: [Snippet] Adding Player EXP
I do not find that the code:
Quote:
sprintf(plr2msg, "KILLED BY %s", killedByPlr->loadout_->Gamertag);
-
Re: [Snippet] Adding Player EXP
Its in warz_server.sln are you in there?
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
FinalEnd
Its in warz_server.sln are you in there?
Yes but I find it looks like:
Quote:
r3dOutToLog("%s killed by %s, forced: %d\n", targetPlr->userName, sourceObj->Name.c_str(), (int)forced_by_server);
-
Re: [Snippet] Adding Player EXP
WarZ_Server.sln > ServerGameLogic.cpp > void ServerGameLogic::DoKillPlayer > That code your looking for will be there.
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
FinalEnd
WarZ_Server.sln > ServerGameLogic.cpp > void ServerGameLogic::DoKillPlayer > That code your looking for will be there.
I find that the code :
Quote:
r3dOutToLog("%s killed by %s, forced: %d\n", targetPlr->userName, sourceObj->Name.c_str(), (int)forced_by_server);
I put this code just below the :
Quote:
r3dOutToLog("%s killed by %s, forced: %d\n", targetPlr->userName, sourceObj->Name.c_str(), (int)forced_by_server);
But I have changed the code by its:
Quote:
gServerLogic.AddPlayerReward(targetPlr, RWD_PlayerKill);
At the end it gives its:
Quote:
r3dOutToLog("%s killed by %s, forced: %d\n", targetPlr->userName, sourceObj->Name.c_str(), (int)forced_by_server);
gServerLogic.AddPlayerReward(targetPlr, RWD_PlayerKill);
But the problem is the opposite is when a player died player wins xp instead of killer
-
Re: [Snippet] Adding Player EXP
gServerLogic.AddPlayerReward(targetPlr, RWD_PlayerKill, 0);
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
javaz97
gServerLogic.AddPlayerReward(targetPlr, RWD_PlayerKill, 0);
EROR : Erreur 6 error C2660: 'ServerGameLogic::AddPlayerReward' : function does not take 3 arguments c:\WarZ\bin\server\WO_GameServer\Sources\ServerGameLogic.cpp 514
-
Re: [Snippet] Adding Player EXP
no search sprintf(plr2msg, "KILLED BY %s", killedByPlr->loadout_->Gamertag);
-
Re: [Snippet] Adding Player EXP
no search sprintf(plr2msg, "KILLED BY %s", killedByPlr->loadout_->Gamertag);
-
Re: [Snippet] Adding Player EXP
Simply make it look like so then and it will work.
Quote:
void ServerGameLogic::DoKillPlayer(GameObject* sourceObj, obj_ServerPlayer* targetPlr, STORE_CATEGORIES weaponCat, bool forced_by_server, bool fromPlayerInAir, bool targetPlayerInAir )
{
r3dOutToLog("%s killed by %s, forced: %d\n", targetPlr->userName, sourceObj->Name.c_str(), (int)forced_by_server);
// sent kill packet
{
PKT_S2C_KillPlayer_s n;
n.targetId = toP2pNetId(targetPlr->GetNetworkID());
n.killerWeaponCat = (BYTE)weaponCat;
n.forced_by_server = forced_by_server;
p2pBroadcastToActive(sourceObj, &n, sizeof(n));
}
// Lost echo Player EXP
//char plr2msg[128] = {0};
if(IsServerPlayer(sourceObj))
{
obj_ServerPlayer * killedByPlr = ((obj_ServerPlayer*)sourceObj);
if (targetPlr->profile_.CustomerID == killedByPlr->profile_.CustomerID)
}
gServerLogic.AddPlayerReward(killedByPlr, RWD_PlayerKill);
targetPlr->DoDeath();
-
Re: [Snippet] Adding Player EXP
can they help me on teamviewer I ask because text not find sprintf (plr2msg, "KILLED BY% s", killedByPlr-> loadout_-> gamertag);
- - - Updated - - -
Pleas
-
Re: [Snippet] Adding Player EXP
Can't teamview lol look @ the code above it should work simply replace and should work.
As i don't use gravestones and sprintf (plr2msg, "KILLED BY% s", killedByPlr-> loadout_-> gamertag);
is the gravestone code.
-
Re: [Snippet] Adding Player EXP
Error
Code:
1>------ Build started: Project: Eternity, Configuration: Release_Server Win32 ------
1>Compiling...
1>WinMain.cpp
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : error C2220: warning treated as error - no 'object' file generated
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : warning C4715: 'TitleWindow' : not all control paths return a value
1>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\src\Eternity\Release_Server\BuildLog.htm"
1>Eternity - 1 error(s), 1 warning(s)
2>------ Build started: Project: WarZ Game Server, Configuration: Release Win32 ------
2>Compiling...
2>sobj_Zombie.cpp
2>ServerGameLogic.cpp
2>.\Sources\ServerGameLogic.cpp(671) : error C2601: 'ServerGameLogic::CanDamageThisObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(693) : error C2601: 'ServerGameLogic::ApplyDamage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(731) : error C2601: 'ServerGameLogic::ApplyDamageToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(766) : error C2601: 'ServerGameLogic::ApplyDamageToZombie' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(782) : error C2601: 'ServerGameLogic::RelayPacket' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(807) : error C2601: 'ServerGameLogic::p2pBroadcastToActive' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(833) : error C2601: 'ServerGameLogic::p2pBroadcastToAll' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(849) : error C2601: 'ServerGameLogic::p2pSendToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(871) : error C2601: 'ServerGameLogic::p2pSendRawToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(881) : error C2601: 'ServerGameLogic::InformZombiesAboutSound' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(890) : error C2601: 'ServerGameLogic::GetRewardData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(918) : error C2601: 'ServerGameLogic::AddPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(928) : error C2601: 'ServerGameLogic::AddDirectPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(950) : error C2601: 'ServerGameLogic::OnPKT_C2S_ValidateConnectingPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(977) : error C2601: 'ServerGameLogic::CreateNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1063) : error C2601: 'ServerGameLogic::DeletePlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1089) : error C2601: 'ServerGameLogic::OnPKT_C2S_JoinGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1160) : error C2601: 'ServerGameLogic::OnPKT_C2S_StartGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1283) : error C2601: 'ServerGameLogic::CheckForPlayersAround' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1298) : error C2601: 'ServerGameLogic::GetStartSpawnPosition' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1335) : error C2601: 'ServerGameLogic::GetSpawnPositionNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1352) : error C2601: 'ServerGameLogic::GetSpawnPositionAfterDeath' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1383) : error C2601: 'ServerGameLogic::AdjustPositionToFloor' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1405) : error C2601: 'ServerGameLogic::NetRegisterObjectToPeers' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1439) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1488) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1507) : error C2601: 'ServerGameLogic::ResetNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1522) : error C2601: 'ServerGameLogic::OnPKT_C2S_Temp_Damage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1580) : error C2601: 'ServerGameLogic::ProcessChatCommand' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1624) : error C2601: 'ServerGameLogic::Cmd_Teleport' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1652) : error C2601: 'ServerGameLogic::Cmd_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1673) : error C2601: 'ServerGameLogic::Cmd_SetVitals' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1687) : error C2601: 'ServerGameLogic::Cmd_TeleportAllToMe' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1707) : error C2601: 'ServerGameLogic::Cmd_Kick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1727) : error C2601: 'ServerGameLogic::Cmd_Ban' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1751) : error C2601: 'ServerGameLogic::Cmd_TeleportToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1776) : error C2601: 'ServerGameLogic::Cmd_TeleportToPlayerMe' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1800) : error C2601: 'ServerGameLogic::FindPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1817) : error C2601: 'ServerGameLogic::OnPKT_C2C_ChatMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1973) : error C2601: 'ServerGameLogic::OnPKT_C2S_DataUpdateReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1981) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_PlayerKick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2004) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2023) : error C2601: 'ServerGameLogic::OnPKT_C2S_SecurityRep' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2089) : error C2601: 'ServerGameLogic::OnPKT_C2S_UseNetObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2153) : error C2601: 'ServerGameLogic::OnPKT_C2S_CreateNote' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2172) : error C2601: 'ServerGameLogic::OnPKT_C2S_TEST_SpawnDummyReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2181) : error C2601: 'ServerGameLogic::OnPKT_C2S_DBG_LogMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2197) : error C2601: 'ServerGameLogic::OnPKT_C2S_ScreenshotData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2222) : error C2601: 'ServerGameLogic::ProcessWorldEvent' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2301) : error C2601: 'ServerGameLogic::TrackWeaponUsage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2327) : error C2601: 'ServerGameLogic::Tick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2402) : error C2601: 'ServerGameLogic::DumpPacketStatistics' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2428) : error C2601: 'ServerGameLogic::GetUtcGameTime' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2443) : error C2601: 'ServerGameLogic::SendWeaponsInfoToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2476) : fatal error C1075: end of file found before the left brace '{' at '.\Sources\ServerGameLogic.cpp(527)' was matched
2>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\WO_GameServer\Release\BuildLog.htm"
2>WarZ Game Server - 55 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 3 up-to-date, 0 skipped ==========
-
Re: [Snippet] Adding Player EXP
-
Re: [Snippet] Adding Player EXP
... just post your area of the code or pm me it.
-
Re: [Snippet] Adding Player EXP
Code:
bool obj_Zombie::ApplyDamage(GameObject* fromObj, float damage, int bodyPart, STORE_CATEGORIES damageSource)
{
if(ZombieState == EZombieStates::ZState_Dead)
return false;
float dmg = damage;
if(bodyPart!=1) // only hitting head will lower zombie's health
dmg = 0;
if(damageSource != storecat_MELEE && bodyPart == 1) // everything except for melee: one shot in head = kill
dmg = 1000;
ZombieHealth -= dmg;
if(ZombieHealth <= 0.0f)
{
DoDeath();
if(fromObj->Class->Name == "obj_ServerPlayer")
{
obj_ServerPlayer* plr = (obj_ServerPlayer*)fromObj;
gServerLogic.AddPlayerReward(plr, RWD_ZombieKill);
gServerLogic.AddPlayerReward(plr, RWD_PlayerKill);
}
return true;
}
// stagger code
if(staggerTime < 0)
{
if(ZombieState != EZombieStates::ZState_Sleep && ZombieState != EZombieStates::ZState_Waking)
{
SetNavAgentSpeed(0.0);
staggerTime = 1.0f;
}
}
-
Re: [Snippet] Adding Player EXP
lol... thats why your adding it to your zombie class look at my post on page 2 add it there.
-
Re: [Snippet] Adding Player EXP
where do I do it in??
Code:
void ServerGameLogic::DoKillPlayer(GameObject* sourceObj, obj_ServerPlayer* targetPlr, STORE_CATEGORIES weaponCat, bool forced_by_server, bool fromPlayerInAir, bool targetPlayerInAir )
{
r3dOutToLog("%s killed by %s, forced: %d\n", targetPlr->userName, sourceObj->Name.c_str(), (int)forced_by_server);
// sent kill packet
{
PKT_S2C_KillPlayer_s n;
n.targetId = toP2pNetId(targetPlr->GetNetworkID());
n.killerWeaponCat = (BYTE)weaponCat;
n.forced_by_server = forced_by_server;
p2pBroadcastToActive(sourceObj, &n, sizeof(n));
}
// Lost echo Player EXP
//char plr2msg[128] = {0};
if(IsServerPlayer(sourceObj))
{
obj_ServerPlayer * killedByPlr = ((obj_ServerPlayer*)sourceObj);
if (targetPlr->profile_.CustomerID == killedByPlr->profile_.CustomerID)
{
gServerLogic.AddPlayerReward(killedByPlr, RWD_PlayerKill);
targetPlr->DoDeath();
-
Re: [Snippet] Adding Player EXP
Do i really gotta say lol... i feel like im making your server.
Search > warz_server.sln - void ServerGameLogic::DoKillPlayer(GameObject* sourceObj, obj_ServerPlayer* targetPlr, STORE_CATEGORIES weaponCat, bool forced_by_server, bool fromPlayerInAir, bool targetPlayerInAir )
And then replace it with the code above and it should be fine.
-
Re: [Snippet] Adding Player EXP
ok I have done and now comes an error
Code:
1>------ Build started: Project: Eternity, Configuration: Release_Server Win32 ------
1>Compiling...
1>WinMain.cpp
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : error C2220: warning treated as error - no 'object' file generated
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : warning C4715: 'TitleWindow' : not all control paths return a value
1>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\src\Eternity\Release_Server\BuildLog.htm"
1>Eternity - 1 error(s), 1 warning(s)
2>------ Build started: Project: WarZ Game Server, Configuration: Release Win32 ------
2>Compiling...
2>ServerGameLogic.cpp
2>.\Sources\ServerGameLogic.cpp(671) : error C2601: 'ServerGameLogic::CanDamageThisObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(693) : error C2601: 'ServerGameLogic::ApplyDamage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(731) : error C2601: 'ServerGameLogic::ApplyDamageToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(766) : error C2601: 'ServerGameLogic::ApplyDamageToZombie' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(782) : error C2601: 'ServerGameLogic::RelayPacket' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(807) : error C2601: 'ServerGameLogic::p2pBroadcastToActive' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(833) : error C2601: 'ServerGameLogic::p2pBroadcastToAll' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(849) : error C2601: 'ServerGameLogic::p2pSendToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(871) : error C2601: 'ServerGameLogic::p2pSendRawToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(881) : error C2601: 'ServerGameLogic::InformZombiesAboutSound' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(890) : error C2601: 'ServerGameLogic::GetRewardData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(918) : error C2601: 'ServerGameLogic::AddPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(928) : error C2601: 'ServerGameLogic::AddDirectPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(950) : error C2601: 'ServerGameLogic::OnPKT_C2S_ValidateConnectingPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(977) : error C2601: 'ServerGameLogic::CreateNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1063) : error C2601: 'ServerGameLogic::DeletePlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1089) : error C2601: 'ServerGameLogic::OnPKT_C2S_JoinGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1160) : error C2601: 'ServerGameLogic::OnPKT_C2S_StartGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1283) : error C2601: 'ServerGameLogic::CheckForPlayersAround' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1298) : error C2601: 'ServerGameLogic::GetStartSpawnPosition' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1335) : error C2601: 'ServerGameLogic::GetSpawnPositionNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1352) : error C2601: 'ServerGameLogic::GetSpawnPositionAfterDeath' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1383) : error C2601: 'ServerGameLogic::AdjustPositionToFloor' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1405) : error C2601: 'ServerGameLogic::NetRegisterObjectToPeers' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1439) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1488) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1507) : error C2601: 'ServerGameLogic::ResetNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1522) : error C2601: 'ServerGameLogic::OnPKT_C2S_Temp_Damage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1580) : error C2601: 'ServerGameLogic::ProcessChatCommand' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1624) : error C2601: 'ServerGameLogic::Cmd_Teleport' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1652) : error C2601: 'ServerGameLogic::Cmd_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1673) : error C2601: 'ServerGameLogic::Cmd_SetVitals' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1687) : error C2601: 'ServerGameLogic::Cmd_TeleportAllToMe' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1707) : error C2601: 'ServerGameLogic::Cmd_Kick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1727) : error C2601: 'ServerGameLogic::Cmd_Ban' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1751) : error C2601: 'ServerGameLogic::Cmd_TeleportToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1776) : error C2601: 'ServerGameLogic::Cmd_TeleportToPlayerMe' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1800) : error C2601: 'ServerGameLogic::FindPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1817) : error C2601: 'ServerGameLogic::OnPKT_C2C_ChatMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1973) : error C2601: 'ServerGameLogic::OnPKT_C2S_DataUpdateReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1981) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_PlayerKick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2004) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2023) : error C2601: 'ServerGameLogic::OnPKT_C2S_SecurityRep' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2089) : error C2601: 'ServerGameLogic::OnPKT_C2S_UseNetObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2153) : error C2601: 'ServerGameLogic::OnPKT_C2S_CreateNote' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2172) : error C2601: 'ServerGameLogic::OnPKT_C2S_TEST_SpawnDummyReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2181) : error C2601: 'ServerGameLogic::OnPKT_C2S_DBG_LogMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2197) : error C2601: 'ServerGameLogic::OnPKT_C2S_ScreenshotData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2222) : error C2601: 'ServerGameLogic::ProcessWorldEvent' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2301) : error C2601: 'ServerGameLogic::TrackWeaponUsage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2327) : error C2601: 'ServerGameLogic::Tick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2402) : error C2601: 'ServerGameLogic::DumpPacketStatistics' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2428) : error C2601: 'ServerGameLogic::GetUtcGameTime' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2443) : error C2601: 'ServerGameLogic::SendWeaponsInfoToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2476) : fatal error C1075: end of file found before the left brace '{' at '.\Sources\ServerGameLogic.cpp(527)' was matched
2>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\WO_GameServer\Release\BuildLog.htm"
2>WarZ Game Server - 55 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 3 up-to-date, 0 skipped ==========
-
Re: [Snippet] Adding Player EXP
You did do a clean build right?
Clean Build > Release Build.
Winmain.cpp turn its warning off to fix that error.
-
Re: [Snippet] Adding Player EXP
unfortunately still the same error :-(
Code:
1>------ Build started: Project: Eternity, Configuration: Release_Server Win32 ------
1>Compiling...
1>WinMain.cpp
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : error C2220: warning treated as error - no 'object' file generated
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : warning C4715: 'TitleWindow' : not all control paths return a value
1>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\src\Eternity\Release_Server\BuildLog.htm"
1>Eternity - 1 error(s), 1 warning(s)
2>------ Build started: Project: WarZ Game Server, Configuration: Release Win32 ------
3>------ Build started: Project: SupervisorServer, Configuration: Release Win32 ------
2>Compiling...
3>Linking...
2>ServerGameLogic.cpp
3>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
3>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\SupervisorServer\Release\BuildLog.htm"
3>SupervisorServer - 1 error(s), 0 warning(s)
2>.\Sources\ServerGameLogic.cpp(671) : error C2601: 'ServerGameLogic::CanDamageThisObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(693) : error C2601: 'ServerGameLogic::ApplyDamage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(731) : error C2601: 'ServerGameLogic::ApplyDamageToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(766) : error C2601: 'ServerGameLogic::ApplyDamageToZombie' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(782) : error C2601: 'ServerGameLogic::RelayPacket' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(807) : error C2601: 'ServerGameLogic::p2pBroadcastToActive' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(833) : error C2601: 'ServerGameLogic::p2pBroadcastToAll' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(849) : error C2601: 'ServerGameLogic::p2pSendToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(871) : error C2601: 'ServerGameLogic::p2pSendRawToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(881) : error C2601: 'ServerGameLogic::InformZombiesAboutSound' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(890) : error C2601: 'ServerGameLogic::GetRewardData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(918) : error C2601: 'ServerGameLogic::AddPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(928) : error C2601: 'ServerGameLogic::AddDirectPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(950) : error C2601: 'ServerGameLogic::OnPKT_C2S_ValidateConnectingPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(977) : error C2601: 'ServerGameLogic::CreateNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1063) : error C2601: 'ServerGameLogic::DeletePlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1089) : error C2601: 'ServerGameLogic::OnPKT_C2S_JoinGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1160) : error C2601: 'ServerGameLogic::OnPKT_C2S_StartGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1283) : error C2601: 'ServerGameLogic::CheckForPlayersAround' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1298) : error C2601: 'ServerGameLogic::GetStartSpawnPosition' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1335) : error C2601: 'ServerGameLogic::GetSpawnPositionNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1352) : error C2601: 'ServerGameLogic::GetSpawnPositionAfterDeath' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1383) : error C2601: 'ServerGameLogic::AdjustPositionToFloor' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1405) : error C2601: 'ServerGameLogic::NetRegisterObjectToPeers' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1439) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1488) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1507) : error C2601: 'ServerGameLogic::ResetNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1522) : error C2601: 'ServerGameLogic::OnPKT_C2S_Temp_Damage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1580) : error C2601: 'ServerGameLogic::ProcessChatCommand' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1624) : error C2601: 'ServerGameLogic::Cmd_Teleport' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1652) : error C2601: 'ServerGameLogic::Cmd_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1673) : error C2601: 'ServerGameLogic::Cmd_SetVitals' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1687) : error C2601: 'ServerGameLogic::Cmd_TeleportAllToMe' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1707) : error C2601: 'ServerGameLogic::Cmd_Kick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1727) : error C2601: 'ServerGameLogic::Cmd_Ban' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1751) : error C2601: 'ServerGameLogic::Cmd_TeleportToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1776) : error C2601: 'ServerGameLogic::Cmd_TeleportToPlayerMe' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1800) : error C2601: 'ServerGameLogic::FindPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1817) : error C2601: 'ServerGameLogic::OnPKT_C2C_ChatMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1973) : error C2601: 'ServerGameLogic::OnPKT_C2S_DataUpdateReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1981) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_PlayerKick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2004) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2023) : error C2601: 'ServerGameLogic::OnPKT_C2S_SecurityRep' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2089) : error C2601: 'ServerGameLogic::OnPKT_C2S_UseNetObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2153) : error C2601: 'ServerGameLogic::OnPKT_C2S_CreateNote' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2172) : error C2601: 'ServerGameLogic::OnPKT_C2S_TEST_SpawnDummyReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2181) : error C2601: 'ServerGameLogic::OnPKT_C2S_DBG_LogMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2197) : error C2601: 'ServerGameLogic::OnPKT_C2S_ScreenshotData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2222) : error C2601: 'ServerGameLogic::ProcessWorldEvent' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2301) : error C2601: 'ServerGameLogic::TrackWeaponUsage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2327) : error C2601: 'ServerGameLogic::Tick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2402) : error C2601: 'ServerGameLogic::DumpPacketStatistics' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2428) : error C2601: 'ServerGameLogic::GetUtcGameTime' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2443) : error C2601: 'ServerGameLogic::SendWeaponsInfoToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2476) : fatal error C1075: end of file found before the left brace '{' at '.\Sources\ServerGameLogic.cpp(527)' was matched
2>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\WO_GameServer\Release\BuildLog.htm"
2>WarZ Game Server - 55 error(s), 0 warning(s)
4>------ Build started: Project: MasterServer, Configuration: Release Win32 ------
4>Linking...
4>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
4>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\MasterServer\Release\BuildLog.htm"
4>MasterServer - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 4 failed, 1 up-to-date, 0 skipped ==========
-
Re: [Snippet] Adding Player EXP
Do you got teamviewer.. ill just do it for you if you do.
or do you by chance have ServerGameLogic.cpp of the source you used before you did changes to it if so send me that file (in a private message) and ill add it there and send it back.
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
linuxking51
unfortunately still the same error :-(
Code:
1>------ Build started: Project: Eternity, Configuration: Release_Server Win32 ------
1>Compiling...
1>WinMain.cpp
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : error C2220: warning treated as error - no 'object' file generated
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : warning C4715: 'TitleWindow' : not all control paths return a value
1>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\src\Eternity\Release_Server\BuildLog.htm"
1>Eternity - 1 error(s), 1 warning(s)
2>------ Build started: Project: WarZ Game Server, Configuration: Release Win32 ------
3>------ Build started: Project: SupervisorServer, Configuration: Release Win32 ------
2>Compiling...
3>Linking...
2>ServerGameLogic.cpp
3>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
3>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\SupervisorServer\Release\BuildLog.htm"
3>SupervisorServer - 1 error(s), 0 warning(s)
2>.\Sources\ServerGameLogic.cpp(671) : error C2601: 'ServerGameLogic::CanDamageThisObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(693) : error C2601: 'ServerGameLogic::ApplyDamage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(731) : error C2601: 'ServerGameLogic::ApplyDamageToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(766) : error C2601: 'ServerGameLogic::ApplyDamageToZombie' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(782) : error C2601: 'ServerGameLogic::RelayPacket' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(807) : error C2601: 'ServerGameLogic::p2pBroadcastToActive' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(833) : error C2601: 'ServerGameLogic::p2pBroadcastToAll' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(849) : error C2601: 'ServerGameLogic::p2pSendToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(871) : error C2601: 'ServerGameLogic::p2pSendRawToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(881) : error C2601: 'ServerGameLogic::InformZombiesAboutSound' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(890) : error C2601: 'ServerGameLogic::GetRewardData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(918) : error C2601: 'ServerGameLogic::AddPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(928) : error C2601: 'ServerGameLogic::AddDirectPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(950) : error C2601: 'ServerGameLogic::OnPKT_C2S_ValidateConnectingPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(977) : error C2601: 'ServerGameLogic::CreateNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1063) : error C2601: 'ServerGameLogic::DeletePlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1089) : error C2601: 'ServerGameLogic::OnPKT_C2S_JoinGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1160) : error C2601: 'ServerGameLogic::OnPKT_C2S_StartGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1283) : error C2601: 'ServerGameLogic::CheckForPlayersAround' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1298) : error C2601: 'ServerGameLogic::GetStartSpawnPosition' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1335) : error C2601: 'ServerGameLogic::GetSpawnPositionNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1352) : error C2601: 'ServerGameLogic::GetSpawnPositionAfterDeath' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1383) : error C2601: 'ServerGameLogic::AdjustPositionToFloor' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1405) : error C2601: 'ServerGameLogic::NetRegisterObjectToPeers' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1439) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1488) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1507) : error C2601: 'ServerGameLogic::ResetNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1522) : error C2601: 'ServerGameLogic::OnPKT_C2S_Temp_Damage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1580) : error C2601: 'ServerGameLogic::ProcessChatCommand' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1624) : error C2601: 'ServerGameLogic::Cmd_Teleport' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1652) : error C2601: 'ServerGameLogic::Cmd_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1673) : error C2601: 'ServerGameLogic::Cmd_SetVitals' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1687) : error C2601: 'ServerGameLogic::Cmd_TeleportAllToMe' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1707) : error C2601: 'ServerGameLogic::Cmd_Kick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1727) : error C2601: 'ServerGameLogic::Cmd_Ban' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1751) : error C2601: 'ServerGameLogic::Cmd_TeleportToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1776) : error C2601: 'ServerGameLogic::Cmd_TeleportToPlayerMe' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1800) : error C2601: 'ServerGameLogic::FindPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1817) : error C2601: 'ServerGameLogic::OnPKT_C2C_ChatMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1973) : error C2601: 'ServerGameLogic::OnPKT_C2S_DataUpdateReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1981) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_PlayerKick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2004) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2023) : error C2601: 'ServerGameLogic::OnPKT_C2S_SecurityRep' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2089) : error C2601: 'ServerGameLogic::OnPKT_C2S_UseNetObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2153) : error C2601: 'ServerGameLogic::OnPKT_C2S_CreateNote' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2172) : error C2601: 'ServerGameLogic::OnPKT_C2S_TEST_SpawnDummyReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2181) : error C2601: 'ServerGameLogic::OnPKT_C2S_DBG_LogMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2197) : error C2601: 'ServerGameLogic::OnPKT_C2S_ScreenshotData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2222) : error C2601: 'ServerGameLogic::ProcessWorldEvent' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2301) : error C2601: 'ServerGameLogic::TrackWeaponUsage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2327) : error C2601: 'ServerGameLogic::Tick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2402) : error C2601: 'ServerGameLogic::DumpPacketStatistics' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2428) : error C2601: 'ServerGameLogic::GetUtcGameTime' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2443) : error C2601: 'ServerGameLogic::SendWeaponsInfoToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(527): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2476) : fatal error C1075: end of file found before the left brace '{' at '.\Sources\ServerGameLogic.cpp(527)' was matched
2>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\WO_GameServer\Release\BuildLog.htm"
2>WarZ Game Server - 55 error(s), 0 warning(s)
4>------ Build started: Project: MasterServer, Configuration: Release Win32 ------
4>Linking...
4>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
4>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\MasterServer\Release\BuildLog.htm"
4>MasterServer - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 4 failed, 1 up-to-date, 0 skipped ==========
PLEASEE Put Local Disk C:
- - - Updated - - -
Quote:
Originally Posted by
Lost Echo
Do you got teamviewer.. ill just do it for you if you do.
or do you by chance have ServerGameLogic.cpp of the source you used before you did changes to it if so send me that file (in a private message) and ill add it there and send it back.
Help me via teamviwer?
Problems Craft
http://i.imgur.com/hkdJe39.jpg?1
-
Re: [Snippet] Adding Player EXP
here is my cpp but I now have this error :-/
http://www.file-upload.net/download-...Logic.cpp.html
Code:
1>------ Build started: Project: Eternity, Configuration: Release_Server Win32 ------
1>Compiling...
1>WinMain.cpp
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : error C2220: warning treated as error - no 'object' file generated
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : warning C4715: 'TitleWindow' : not all control paths return a value
1>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\src\Eternity\Release_Server\BuildLog.htm"
1>Eternity - 1 error(s), 1 warning(s)
2>------ Build started: Project: WarZ Game Server, Configuration: Release Win32 ------
3>------ Build started: Project: SupervisorServer, Configuration: Release Win32 ------
2>Compiling...
3>Linking...
2>ServerGameLogic.cpp
3>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
3>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\SupervisorServer\Release\BuildLog.htm"
3>SupervisorServer - 1 error(s), 0 warning(s)
2>Compiling...
2>PhysObj.cpp
2>Linking...
2>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
2>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\WO_GameServer\Release\BuildLog.htm"
2>WarZ Game Server - 1 error(s), 0 warning(s)
4>------ Build started: Project: MasterServer, Configuration: Release Win32 ------
4>Linking...
4>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
4>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\MasterServer\Release\BuildLog.htm"
4>MasterServer - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 4 failed, 1 up-to-date, 0 skipped ==========
-
Re: [Snippet] Adding Player EXP
Here you go this should work as for your winmain.cpp you gotta disable the warning for it else you will get the error.
http://uppit.com/nr6thp3lmlqt/ServerGameLogic.cpp
-
Re: [Snippet] Adding Player EXP
error
Code:
1>------ Build started: Project: Eternity, Configuration: Release_Server Win32 ------
1>Compiling...
1>WinMain.cpp
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : error C2220: warning treated as error - no 'object' file generated
1>c:\users\admin\desktop\source test23\warz\warz\src\eternity\source\winmain.cpp(603) : warning C4715: 'TitleWindow' : not all control paths return a value
1>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\src\Eternity\Release_Server\BuildLog.htm"
1>Eternity - 1 error(s), 1 warning(s)
2>------ Build started: Project: WarZ Game Server, Configuration: Release Win32 ------
3>------ Build started: Project: SupervisorServer, Configuration: Release Win32 ------
3>Linking...
2>Compiling...
3>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
3>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\SupervisorServer\Release\BuildLog.htm"
3>SupervisorServer - 1 error(s), 0 warning(s)
2>obj_ServerPlayer.cpp
2>ServerGameLogic.cpp
2>.\Sources\ServerGameLogic.cpp(674) : error C2601: 'ServerGameLogic::CanDamageThisObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(696) : error C2601: 'ServerGameLogic::ApplyDamage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(734) : error C2601: 'ServerGameLogic::ApplyDamageToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(769) : error C2601: 'ServerGameLogic::ApplyDamageToZombie' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(785) : error C2601: 'ServerGameLogic::RelayPacket' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(810) : error C2601: 'ServerGameLogic::p2pBroadcastToActive' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(836) : error C2601: 'ServerGameLogic::p2pBroadcastToAll' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(852) : error C2601: 'ServerGameLogic::p2pSendToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(874) : error C2601: 'ServerGameLogic::p2pSendRawToPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(884) : error C2601: 'ServerGameLogic::InformZombiesAboutSound' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(893) : error C2601: 'ServerGameLogic::GetRewardData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(921) : error C2601: 'ServerGameLogic::AddPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(931) : error C2601: 'ServerGameLogic::AddDirectPlayerReward' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(953) : error C2601: 'ServerGameLogic::OnPKT_C2S_ValidateConnectingPeer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(980) : error C2601: 'ServerGameLogic::CreateNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1066) : error C2601: 'ServerGameLogic::DeletePlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1092) : error C2601: 'ServerGameLogic::OnPKT_C2S_JoinGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1163) : error C2601: 'ServerGameLogic::OnPKT_C2S_StartGameReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1286) : error C2601: 'ServerGameLogic::CheckForPlayersAround' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1301) : error C2601: 'ServerGameLogic::GetStartSpawnPosition' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1338) : error C2601: 'ServerGameLogic::GetSpawnPositionNewPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1355) : error C2601: 'ServerGameLogic::GetSpawnPositionAfterDeath' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1386) : error C2601: 'ServerGameLogic::AdjustPositionToFloor' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1408) : error C2601: 'ServerGameLogic::NetRegisterObjectToPeers' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1442) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1491) : error C2601: 'ServerGameLogic::UpdateNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1510) : error C2601: 'ServerGameLogic::ResetNetObjVisData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1525) : error C2601: 'ServerGameLogic::OnPKT_C2S_Temp_Damage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1583) : error C2601: 'ServerGameLogic::ProcessChatCommand' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1604) : error C2601: 'ServerGameLogic::Cmd_Teleport' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1632) : error C2601: 'ServerGameLogic::Cmd_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1653) : error C2601: 'ServerGameLogic::Cmd_SetVitals' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1668) : error C2601: 'ServerGameLogic::OnPKT_C2C_ChatMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1810) : error C2601: 'ServerGameLogic::OnPKT_C2S_DataUpdateReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1818) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_PlayerKick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1841) : error C2601: 'ServerGameLogic::OnPKT_C2S_Admin_GiveItem' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1860) : error C2601: 'ServerGameLogic::OnPKT_C2S_SecurityRep' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1926) : error C2601: 'ServerGameLogic::OnPKT_C2S_UseNetObject' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(1990) : error C2601: 'ServerGameLogic::OnPKT_C2S_CreateNote' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2009) : error C2601: 'ServerGameLogic::OnPKT_C2S_TEST_SpawnDummyReq' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2018) : error C2601: 'ServerGameLogic::OnPKT_C2S_DBG_LogMessage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2034) : error C2601: 'ServerGameLogic::OnPKT_C2S_ScreenshotData' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2059) : error C2601: 'ServerGameLogic::ProcessWorldEvent' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2138) : error C2601: 'ServerGameLogic::TrackWeaponUsage' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2164) : error C2601: 'ServerGameLogic::Tick' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2239) : error C2601: 'ServerGameLogic::DumpPacketStatistics' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2265) : error C2601: 'ServerGameLogic::GetUtcGameTime' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2280) : error C2601: 'ServerGameLogic::SendWeaponsInfoToPlayer' : local function definitions are illegal
2> .\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
2>.\Sources\ServerGameLogic.cpp(2313) : fatal error C1075: end of file found before the left brace '{' at '.\Sources\ServerGameLogic.cpp(524)' was matched
2>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\WO_GameServer\Release\BuildLog.htm"
2>WarZ Game Server - 49 error(s), 0 warning(s)
4>------ Build started: Project: MasterServer, Configuration: Release Win32 ------
4>Linking...
4>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
4>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\MasterServer\Release\BuildLog.htm"
4>MasterServer - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 4 failed, 1 up-to-date, 0 skipped ==========
and dies 4>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
-
Re: [Snippet] Adding Player EXP
This error you gotta disable the warnings for.
winmain.cpp(603) : error C2220: warning treated as error - no 'object' file generated
This error is due to line 524
\Sources\ServerGameLogic.cpp(524): this line contains a '{' which has not yet been matched
Try replace with this code and if you get a error (prob will) post it.
if(IsServerPlayer(sourceObj))
{
obj_ServerPlayer * killedByPlr = ((obj_ServerPlayer*)sourceObj);
if (targetPlr->profile_.CustomerID == killedByPlr->profile_.CustomerID)
}
Just search for if(IsServerPlayer(sourceObj)) and replace that code with code above.
-
Re: [Snippet] Adding Player EXP
Now error
Code:
1>------ Build started: Project: Eternity, Configuration: Release_Server Win32 ------
1>Compiling...
1>WinMain.cpp
2>ServerGame.cpp
3>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\SupervisorServer\Release\BuildLog.htm"
3>SupervisorServer - 1 error(s), 0 warning(s)
2>Linking...
2>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
2>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\WO_GameServer\Release\BuildLog.htm"
2>WarZ Game Server - 1 error(s), 0 warning(s)
4>------ Build started: Project: MasterServer, Configuration: Release Win32 ------
4>Linking...
4>LINK : fatal error LNK1181: cannot open input file '..\..\..\src\eternity\lib\r3dlib_statcrt_server.lib'
4>Build log was saved at "file://c:\Users\Admin\Desktop\source test23\WarZ\WarZ\bin\server\MasterServer\Release\BuildLog.htm"
4>MasterServer - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 4 failed, 1 up-to-date, 0 skipped ==========
now I can not at my server more open :-(
-
Re: [Snippet] Adding Player EXP
Well player exp is now fixed so thats good, for winmain do what i said before its in properties you gotta do it to winmain.cpp and for your other error its saying it cannot open it so see if you even have it.
But those 2 errors you got now are from something else not this tutorial.
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Lost Echo
Well player exp is now fixed so thats good, for winmain do what i said before its in properties you gotta do it to winmain.cpp and for your other error its saying it cannot open it so see if you even have it.
But those 2 errors you got now are from something else not this tutorial.
Help me please, I am not able to resolve this problem
http://i.imgur.com/hkdJe39.jpg?1
-
Re: [Snippet] Adding Player EXP
how do I make the warning of WINMAIN.CPP off ???
-
Re: [Snippet] Adding Player EXP
unfortunately it does not work still with me now I beckomme 2x XP for a zombie can you please help me on teamviewer :-(
-
Re: [Snippet] Adding Player EXP
-
Re: [Snippet] Adding Player EXP
would be nice one re-release :kiss: someone knows the fuctions?
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Bombillo
would be nice one re-release :kiss: someone knows the fuctions?
@Bombillo
Its your lucky day re-added it enjoy.
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
@
Bombillo
Its your lucky day re-added it enjoy.
You're awesome man!, One thing I have been search for
Code:
obj_ServerPlayer * killerPlr = ((obj_ServerPlayer*)sourceObj);
but I cannot found the function, I just need this to finish
Code:
gServerLogic.AddPlayerReward(killerPlr, RWD_PlayerKill);
any idea?
I use IR(Infestation Reloaded) srcs
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Bombillo
You're awesome man!, One thing I have been search for
Code:
obj_ServerPlayer * killerPlr = ((obj_ServerPlayer*)sourceObj);
but I cannot found the function, I just need this to finish
Code:
gServerLogic.AddPlayerReward(killerPlr, RWD_PlayerKill);
any idea?
I use IR(Infestation Reloaded) srcs
Okay can you open warz_server.sln and then search for KillPlayer then you will find an entire function then copy it all and put it on pastebin.com ill take a look at it and tell you where to put it.
-
Re: [Snippet] Adding Player EXP
here is the function thanks for the help man
http://pastebin.com/4gTw6WhN
-
Re: [Snippet] Adding Player EXP
Ok i noticed my problem sorry i forgot to add a certain code to it anyways here is your "Fixed" killplayers with playerkilling exp
http://pastebin.com/raw.php?i=nc9bPH2n
If you have problems with adding it just re-follow my tutorial as it would now work :)
-
Re: [Snippet] Adding Player EXP
it works! awesome :thumbup:
-
Re: [Snippet] Adding Player EXP
i want picture preview
Screenshot by Lightshot <<< Using this?
Kill player
-
Re: [Snippet] Adding Player EXP
Anyone know how adding player money ?
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Thiago Costa
Anyone know how adding player money ?
Change this the 0's are money
SetReward(3, "PlayerKill", 0, 15, 0, 15);
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
Change this the 0's are money
SetReward(3, "PlayerKill", 0, 15, 0, 15);
More will appear the message to kill the player?
-
Re: [Snippet] Adding Player EXP
To have it popup like xp does look for this
if(n.XP > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_XPAdded"), n.XP);
hudMain->showMessage(tmpStr);
}
and paste this above or below it.
if(n.GD > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_DollarsPickedUp"), n.GD);
hudMain->showMessage(tmpStr);
}
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
To have it popup like xp does look for this
if(n.XP > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_XPAdded"), n.XP);
hudMain->showMessage(tmpStr);
}
and paste this above or below it.
if(n.GD > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_DollarsPickedUp"), n.GD);
hudMain->showMessage(tmpStr);
}
I use the src thv2, I'm not finding these codes.
-
Re: [Snippet] Adding Player EXP
Its on WarZ.sln (client side)
and if you still don't find it look for gLangMngr.getString("InfoMsg_XPAdded and then copy the code it has like i did above.
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
Its on WarZ.sln (client side)
and if you still don't find it look for gLangMngr.getString("InfoMsg_XPAdded and then copy the code it has like i did above.
It worked.
Now I have another problem, the letters are coming one on top of another. Is to solve?
THX LIKE !
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
To have it popup like xp does look for this
if(n.XP > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_XPAdded"), n.XP);
hudMain->showMessage(tmpStr);
}
and paste this above or below it.
if(n.GD > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_DollarsPickedUp"), n.GD);
hudMain->showMessage(tmpStr);
}
Of to do it with players?
Ex: I kill a player and appears on the screen for all to see.
I know I have the killfeed, the more it shows in the chat. I wanted to show CS type.
SOURCE V2/V3
-
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
To have it popup like xp does look for this
if(n.XP > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_XPAdded"), n.XP);
hudMain->showMessage(tmpStr);
}
and paste this above or below it.
if(n.GD > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_DollarsPickedUp"), n.GD);
hudMain->showMessage(tmpStr);
}
now working ; can`t adding dollars