is there a way to print out in client %u with

Any discussion not related to the other forum topics
Post Reply
WiiStream

is there a way to print out in client %u with

Post by WiiStream » Wed Feb 06, 2013 9:58 am

PChar->pushPacket(new CChatMessagePacket(PChar, MESSAGE_SAY, "Getting Max Magic Points %u")),PChar->Health.mp;

something like that.

I was wondering about this when the getMaxHp function is being called is it requesting a value

inline int32 CLuaBaseEntity::getMaxMP(lua_State *L)

getMaxHP(value);

or is it just asking to get the value to send it back to some thing?

what one would be right

getMaxHP(value);

getMaxHP();

or both?

WiiStream

Re: is there a way to print out in client %u with

Post by WiiStream » Mon Feb 11, 2013 9:24 am

Code: Select all

int32 n = PChar->GetMaxHP();
    char buf[110];
    sprintf(buf,"Getting Max Health Points: %d", (int)n);
	PChar->pushPacket(new CChatMessagePacket(PChar, MESSAGE_STRING_SAY , ("%s",buf)));

Post Reply