Experienced Elementalist
- Joined
- Sep 14, 2011
- Messages
- 265
- Reaction score
- 6
So i tried to make /specialitem command which disable specialitems in wheel.
Its my first command so idk how to do that![Er... what? o_O o_O](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
ZChat_cmds.cpp:
ZgameInterface.cpp:
Errors :
c:\users\X\desktop\gunz pserver\perfectsource\gunz\ZGameInterface.cpp(3795): error C2065: 'bSpecialTrue' : undeclared identifier
c:\Users\X\Desktop\Gunz Pserver\PerfectSource\Gunz\ZGameInterface.cpp(3795): error C2065: 'bSpecialTrue' : undeclared identifier
Its my first command so idk how to do that
ZChat_cmds.cpp:
Code:
void ChatCmd_DisableSpecial(const char* line, const int argc, char **const argv)
{
bool bSpecialTrue = false;
if(bSpecialTrue = false)
{
bSpecialTrue = true;
ZChatOutput("^1Special item mode has been enabled.", ZChat::CMT_SYSTEM);
}
else
{
bSpecialTrue = false;
ZChatOutput("^1Special item mode has been disabled.", ZChat::CMT_SYSTEM);
}
}
ZgameInterface.cpp:
Code:
if(bSpecialTrue) {
for(int i = MMCIP_MELEE; i < MMCIP_SECONDARY + 1; i++) {
if (!pChar->GetItems()->GetItem((MMatchCharItemParts)i)->IsEmpty()) {
if(pChar->GetItems()->GetSelectedWeaponParts() == i)
nPos = nHasItemCount;
ItemQueue[nHasItemCount++] = i;
}
}
}
else
{
for(int i = MMCIP_MELEE; i < MMCIP_CUSTOM2 + 1; i++)
{
if (!pChar->GetItems()->GetItem((MMatchCharItemParts)i)->IsEmpty())
{
if(pChar->GetItems()->GetSelectedWeaponParts() == i)
nPos = nHasItemCount;
ItemQueue[nHasItemCount++] = i;
}
}
}
Errors :
c:\users\X\desktop\gunz pserver\perfectsource\gunz\ZGameInterface.cpp(3795): error C2065: 'bSpecialTrue' : undeclared identifier
c:\Users\X\Desktop\Gunz Pserver\PerfectSource\Gunz\ZGameInterface.cpp(3795): error C2065: 'bSpecialTrue' : undeclared identifier