Newbie Spellweaver
- Joined
- Jan 4, 2010
- Messages
- 99
- Reaction score
- 3
struct ZPACKEDDASHINFO {
short posx, posy, posz;
short dirx, diry, dirz;
BYTE seltype, nDashColor;
};
inline void ZPostDash(rvector& vPos, rvector& vDir, unsigned char sel_type, int nDashColor) {
ZPACKEDDASHINFO pdi;
pdi.posx = Roundf(vPos.x);
pdi.posy = Roundf(vPos.y);
pdi.posz = Roundf(vPos.z);
pdi.dirx = vDir.x * 32000;
pdi.diry = vDir.y * 32000;
pdi.dirz = vDir.z * 32000;
pdi.seltype = sel_type;
pdi.nDashColor = nDashColor;
ZPOSTCMD1(CLOAK_CMD_ID(MC_PEER_DASH, 9964), MCommandParameterBlob(&pdi, sizeof(ZPACKEDDASHINFO)));
}
Code:struct ZPACKEDDASHINFO { short posx, posy, posz; short dirx, diry, dirz; BYTE seltype, nDashColor; };
Code:inline void ZPostDash(rvector& vPos, rvector& vDir, unsigned char sel_type, int nDashColor) { ZPACKEDDASHINFO pdi; pdi.posx = Roundf(vPos.x); pdi.posy = Roundf(vPos.y); pdi.posz = Roundf(vPos.z); pdi.dirx = vDir.x * 32000; pdi.diry = vDir.y * 32000; pdi.dirz = vDir.z * 32000; pdi.seltype = sel_type; pdi.nDashColor = nDashColor; ZPOSTCMD1(CLOAK_CMD_ID(MC_PEER_DASH, 9964), MCommandParameterBlob(&pdi, sizeof(ZPACKEDDASHINFO))); }
This way your DashColor will function normally.
It actually gave me quite a few more issues, i fixed those with a simple typo. this is the only thing im stuck on now, this CSCommonE.lib file...
any help is appreciated here.
View attachment 165190
View attachment 165191
This is a linker error, the project setup is somehow messed up, and you're probably missing a main function, or the project isn't recognizing it.
The tutorial above shouldn't have caused that problem, it's most likely caused by you, try cleaning up the project and build again.
If not, go to project Properties > Configuration > Linker, give us a picture of that box.
This is a linker error, the project setup is somehow messed up, and you're probably missing a main function, or the project isn't recognizing it.
The tutorial above shouldn't have caused that problem, it's most likely caused by you, try cleaning up the project and build again.
If not, go to project Properties > Configuration > Linker, give us a picture of that box.
yes i will! im at work for another 5 hours, then i will get that posted asap! thanks for all your guy's help!
This is the linker configuration that is set up. it def seems something happened? but i havnt touched this linker set up since the configuration set up at the beginning of the source, a LONG time ago lol
View attachment 165205
I have equal problem
Ok Thanks for answer, you can tell me how do you fix the problem?