Hi, can someone help me find the error?
My function is:
Im not sure if im using C++ and shouldnt be, or im initalizing wrong, but does anyone know?Code:void Command_Place(char **Arg, int ArgCount)
{
char OverflowHue[25] = {0};
stHouseItem HouseItem = {0};
POINT PLocal;
POINT HLocal;
PLocal.x = ArgToInt(Arg[1]);
PLocal.y = ArgToInt(Arg[2]);
HLocal.x = PLocal.x - Center.x;
HLocal.y = PLocal.y - Center.y;
ClientPrint("%s %d", "HOUSE X ",HLocal.x);
ClientPrint("%s %i", "HOUSE Y ",HLocal.y);
HouseItem.cmd = 0xD7;
HouseItem.size[1] = 0x19;
HouseItem.serial[2] = 0x15;
HouseItem.serial[3] = 0xC9;
HouseItem.cmdsend[1] = 0x06;
HouseItem.artid[2] = 0x05;
HouseItem.artid[3] = 0x22;
HouseItem.posx[3] = char(9);
HouseItem.posy[3] = char(-3);
HouseItem.unkown4 = 0x0A;
memcpy(OverflowHue,&HouseItem,sizeof(OverflowHue));
SendToServer(OverflowHue,25);
}