Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 4Story
You last visited: Today at 17:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP] Say(pMSG);

Discussion on [HELP] Say(pMSG); within the 4Story forum part of the MMORPGs category.

Reply
 
Old   #1
 
RedSwag's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 444
Received Thanks: 329
[HELP] Say(pMSG);

I'm trying make something on 4story source, i'm learning while editing things but I'm having a problem in a part of code, so think i have this code:

PHP Code:
void CTItem::SendCS_FOO_ACKCTItem *pTITEM)
{
    
CPacket *pMSG = new CPacket();
    
pMSG->SetID(CS_FOO_ACK)
        << 
pTITEM->m_wFoo
        
<< pTITEM->m_dlID;

    
Say(pMSG);

The problem at this code is the part of "Say(pMSG);" I got an error on building
PHP Code:
c:\Users\Stupid\SomeThings\4Story Source Files 3.5\4Story Source Files 3.5\TServer\TMapSvr\CSSender.cpp(1134): error C3861'Say'identifier not foundeven with argument-dependent lookup 
It says identifier not found but if you scroll down CSSender.cpp, all voids have this pMSG, idk why i'm still searching it, if anybody can help me on that, i'll be very thankful.
RedSwag is offline  
Old 03/26/2015, 09:32   #2
 
Logtetsch's Avatar
 
elite*gold: 192
Join Date: May 2009
Posts: 2,227
Received Thanks: 3,262
::Say is a class method and no static function that you can access from somewhere else. It should be possible to inherit ::Say from the class that defines it. But the problem in which you'll be going to by inherit ::Say from some class is that ::Say won't work directly. Well, it do, but there will be a logic issue. In fact of ::Say needs an open tcp connection, you have to verify that there is one and of course make all tcp resources accessible to ::Say.
Logtetsch is offline  
Thanks
1 User
Old 03/26/2015, 12:37   #3
 
RedSwag's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 444
Received Thanks: 329
Thank Y'all, it worked , i've used CTPlayer instead michamo.
RedSwag is offline  
Reply




All times are GMT +1. The time now is 17:18.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.