[Src]->Custom Votes

Codes already submitted by people of the forums.
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

E:\Game.cpp(11793) : error C2051: case expression not constant 2 errors left both has this <.< just other lines help me fix that please what i must do to fix that?
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
Maxis
Regular
Posts: 51
Joined: Tue Apr 04, 2006 4:47 pm

Post by Maxis »

I change this name MSGID_VOTE; for case 3: i don't now is working :) i don't have error.

edit: eh is not working ;/
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

it fix the error but make warning and wont work marleythe9 could u help us?
:S
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

Code: Select all

  #define DEF_NOTIFY_VOTE      	0x0B84
  #define MSGID_VOTE        0x0B85 // VOTE MSGID_VOTE:
add this to netmessages.h
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
Maxis
Regular
Posts: 51
Joined: Tue Apr 04, 2006 4:47 pm

Post by Maxis »

thx is work I have problem i give question and give Yes and have conection lost
(2006: 8:29:14:30) - (!) Game Server Activated.
(2006: 8:29:14:31) - <1> Client Connected: (84.*.*.*)
(2006: 8:29:14:31) - Confirmed. Account: (Maxis) Name: (GM2) Level: (211)
(2006: 8:29:14:31) - Unknown message received! (0x00000B85) Delete Client
what is wrong ??:P
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

Maxis wrote: thx is work I have problem i give question and give Yes and have conection lost
(2006: 8:29:14:30) - (!) Game Server Activated.
(2006: 8:29:14:31) - <1> Client Connected: (84.*.*.*)
(2006: 8:29:14:31) - Confirmed. Account: (Maxis) Name: (GM2) Level: (211)
(2006: 8:29:14:31) - Unknown message received! (0x00000B85) Delete Client
what is wrong ??:P
your client and hg netmessage dont match, so it sent the wrong message. make sure they match
Maxis
Regular
Posts: 51
Joined: Tue Apr 04, 2006 4:47 pm

Post by Maxis »

help fix that what i must do to fix that??
mcgrady
noob
Posts: 23
Joined: Sat Apr 10, 2004 2:25 am

Post by mcgrady »

Kiruku wrote:

Code: Select all

  #define DEF_NOTIFY_VOTE      	0x0B84
  #define MSGID_VOTE        0x0B85 // VOTE MSGID_VOTE:
add this to netmessages.h
Kiruku u can fix ?? Help me :)

Code: Select all

Compiling...
Game.cpp
E:\Game.cpp(2044) : warning C4309: '=' : truncation of constant value
E:\Game.cpp(8783) : warning C4305: '=' : truncation from 'const int' 
E:\Game.cpp(8783) : warning C4309: '=' : truncation of constant value
E:\Game.cpp(11794) : error C2051: case expression not constant
Error executing cl.exe.
HGserver.exe - 1 error(s), 3 warning(s)
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

easy go to Netmessages.h

you can make the Messgae thats not in use

like #define MSGID_VOTE 0x12a01112
and for the other message
#define DEF_NOTIFY_VOTE 0x0B85

you need to define each of the messages in Client and HG.
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
Maxis
Regular
Posts: 51
Joined: Tue Apr 04, 2006 4:47 pm

Post by Maxis »

thx man good :))

edit:
I have DC client ;/ I give /vote crusade Yes No and players is give Yes and have Connection Lost ;/ and this
(2006: 8:30:23:11) - Unknown message received! (0x12A01112) Delete Client
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

Maxis wrote: thx man good :))

edit:
I have DC client ;/ I give /vote crusade Yes No and players is give Yes and have Connection Lost ;/ and this
(2006: 8:30:23:11) - Unknown message received! (0x12A01112) Delete Client
you forgot to match the netmessage messages in hg and client

#define MSGID_VOTE 0x12a01112

has to be same in client and hg
mcgrady
noob
Posts: 23
Joined: Sat Apr 10, 2004 2:25 am

Post by mcgrady »

Thx MEN!:) Thx - 0 error(s), 0 warning(s)
Maxis
Regular
Posts: 51
Joined: Tue Apr 04, 2006 4:47 pm

Post by Maxis »

Crossfade wrote:
Maxis wrote: thx man good :))

edit:
I have DC client ;/ I give /vote crusade Yes No and players is give Yes and have Connection Lost ;/ and this
(2006: 8:30:23:11) - Unknown message received! (0x12A01112) Delete Client
you forgot to match the netmessage messages in hg and client

#define MSGID_VOTE 0x12a01112

has to be same in client and hg
I give this #define MSGID_VOTE 0x12a01112 in netmessage hg and client and i have again this
(2006: 8:30:23:11) - Unknown message received! (0x12A01112) Delete Client
;/
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

make sure both messages are the same

#define MSGID_VOTE 0x12a01112
#define DEF_NOTIFY_VOTE 0x0B85

in the HG and Client
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

OT: Marley you got so cute avatar :)
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Post Reply