Салом
-
Posts
50 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Салом
-
-
AddToCharacter take two agrguments not three.
INVENTORY_MAX_COUNT dosen't exist in source, unless you changed his name.
C++11 is required for these codes to work. You are using lambda expression which is a c++11 feature, same for auto.
Here it's the fixed version.
Spoiler{ std::vector<CItem*> collectItems; std::vector<WORD> oldCells; int totalSize = 0; for (auto i = 0; i < INVENTORY_MAX_NUM; ++i) { auto item = ch->GetInventoryItem(i); if (item) { totalSize += item->GetSize(); oldCells.push_back(item->GetCell()); collectItems.push_back(item); } } if (totalSize - 3 >= INVENTORY_MAX_NUM) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("INVENTORY_FULL_CANNOT_SORT")); return; } for (auto& item : collectItems) { item->RemoveFromCharacter(); } std::sort(collectItems.begin(), collectItems.end(), []( CItem* a, CItem* b) { return a->GetVnum() < b->GetVnum(); }); for (auto& sortedItem : collectItems) { auto cell = ch->GetEmptyInventory(sortedItem->GetSize()); sortedItem->AddToCharacter(ch, TItemPos(INVENTORY, cell)); } }
You get the errors because your compiler dosen't support C++11.
From what source did you steal the codes?
-
It works.
-
Acum 8 ore, ZyuX a spus:
Fixed. Thank you.
tell us how
-
You need a decent processor, up to 8GB of RAM, a fast network and an advanced HDD.
The most important is the network. You need a big band, somewhere at 1gb. To be able to support all 3,000 connections at the same time but not to lose data. -
GC - game to client CG - client to game DG - db to game
Check this out https://metin2dev.org/board/index.php?/topic/191-cgame-client-client-game-communication-with-packets/&page=1
- 1
-
You do not need to pay for this, tell me which version of mysql do you use?
- 1
-
-
Acum 1 oră, eugen1234 a spus:
Something else?
Trash3
-
@Sherer We can not open the attachment file. Please upload the files to an external site (Mega/dropbox)
-
La 14.03.2017 la 23:50, Tasho a spus:
Thanks for release, but why you create a new bool for what? to look like more tutorial code? need only 3 lines.
const TPixelPosition& c_rkPPosCur = NEW_GetCurPixelPositionRef(); if (CPythonBackground::Instance().isAttrOn(c_rkPPosCur.x, c_rkPPosCur.y, CTerrainImpl::ATTRIBUTE_BANPK)) return FALSE;
Also the check is already exist, just need to copy-paste check from:
bool CInstanceBase::IsInSafe() // InstanceBase.cpp
Original idea is from: Rubinum2.
PS: Here is nothing to coding, is just copy 3 lines from other part and put in this part. ", you just copy also them idea and + title name video from rubinum. i will release a code of mine "
Readability
-
go and sell news paper
-
def __MakePortring(self, qid): constInfo.PortRingqin= int(qid)
Under
def EmptyFunction(self): pass
-
CC = g++
you are not using clang at this moment, your source is not configured to be compiled using clang, since the default compiler is g++ (You source use gcc which is very old, since 2004). I advise you to install gcc49, it supports c ++ 11. As I can see you use the martysama source, contact him for the update which contains clang as default compiler. -
I think you need a higher clang version. Show me Makefile.
[FAST] Looking for Developer in C++
in Paid Support / Searching / Recruiting
Posted
this guy it's a big scammer, never trust him