[Src]->Custom Votes

Codes already submitted by people of the forums.
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

rox!!
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

ya heh code not perfict :), i just wiped it together cuz i thought was cool idea.

its supos to be Vote for Everyone, like all clients and all, kinda lik cs lol thats were i got idea lol.

u can do what u want with code :), to send to just Gms or what not.

the GM_VOTE lol is just my newb way to save the Gm who started the vote so it can send resualts to him latter heh

my guid ant so great in between the ///// says a function every thing under it like it will say add after something then have some code, basicly saying ;) in that function heh if u didnt get that. if u just scroll down a bit in the function it wont be hard to find :)
<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' />
mcgrady
noob
Posts: 23
Joined: Sat Apr 10, 2004 2:25 am

Post by mcgrady »

Code: Select all

E:\Game.cpp(11790) : error C2051: case expression not constant
E:\Game.cpp(14640) : error C2065: 'DEF_NOTIFY_VOTE' : undeclared identifier
E:\Game.cpp(14640) : error C2051: case expression not constant
E:\Game.cpp(60041) : error C2065: 'ShowRepNotice' : undeclared identifier

how to fix that, thx :D

Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

mcgrady wrote:

Code: Select all

E:\Game.cpp(11790) : error C2051: case expression not constant
E:\Game.cpp(14640) : error C2065: 'DEF_NOTIFY_VOTE' : undeclared identifier
E:\Game.cpp(14640) : error C2051: case expression not constant
E:\Game.cpp(60041) : error C2065: 'ShowRepNotice' : undeclared identifier

how to fix that, thx :D
same problem :/
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

u didnt add teh DEF_NOTIFY_VOTE part.

als u need showrepnotice.

Code: Select all

//showrepnotice
void CGame::ShowRepNotice(int iClientH,char *pMsg)
{
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_NOTICEMSG, NULL, NULL, NULL, pMsg);
}
<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' />
mcgrady
noob
Posts: 23
Joined: Sat Apr 10, 2004 2:25 am

Post by mcgrady »

now i have this problem :'(

Code: Select all

E:\Game.cpp(11794) : error C2051: case expression not constant
E:\Game.cpp(14644) : error C2065: 'DEF_NOTIFY_VOTE' : undeclared identifier
E:\Game.cpp(14644) : error C2051: case expression not constant
Map.cpp
wmain.cpp
Error executing cl.exe.
:(
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

//vote
case DEF_NOTIFY_VOTE: //0x0B84
NotifyMsg_Vote(pData);
break;

and thats your answer.

if you cant figure it, DONT DO IT.
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

netmessages.h
<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' />
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

Kiruku wrote:
mcgrady wrote:

Code: Select all

E:\Game.cpp(11790) : error C2051: case expression not constant
E:\Game.cpp(14640) : error C2065: 'DEF_NOTIFY_VOTE' : undeclared identifier
E:\Game.cpp(14640) : error C2051: case expression not constant
E:\Game.cpp(60041) : error C2065: 'ShowRepNotice' : undeclared identifier

how to fix that, thx :D
same problem :/
DEFINE THEM GOD!
Maxis
Regular
Posts: 51
Joined: Tue Apr 04, 2006 4:47 pm

Post by Maxis »

nice :)) is working thx good job;0
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

Crossfade wrote:
Kiruku wrote:
mcgrady wrote:

Code: Select all

E:\Game.cpp(11790) : error C2051: case expression not constant
E:\Game.cpp(14640) : error C2065: 'DEF_NOTIFY_VOTE' : undeclared identifier
E:\Game.cpp(14640) : error C2051: case expression not constant
E:\Game.cpp(60041) : error C2065: 'ShowRepNotice' : undeclared identifier

how to fix that, thx :D
same problem :/
DEFINE THEM GOD!
E:\Game.cpp(14640) : error C2051: case expression not constant

and this?
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
mcgrady
noob
Posts: 23
Joined: Sat Apr 10, 2004 2:25 am

Post by mcgrady »

Code: Select all

E:\Game.cpp(11793) : error C2051: case expression not constant
Error executing cl.exe.
same problem :S
:(
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

mcgrady wrote:

Code: Select all

E:\Game.cpp(11793) : error C2051: case expression not constant
Error executing cl.exe.
same problem :S
:(
because you didnt define it
mcgrady
noob
Posts: 23
Joined: Sat Apr 10, 2004 2:25 am

Post by mcgrady »

how to fix that _??
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

how to define with a int? or a BOOL? or void? its different....
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
Post Reply