0 registered members (),
1,459
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
[ANet] Disconnect message
#342830
10/01/10 13:43
10/01/10 13:43
|
Joined: May 2009
Posts: 445 Peine, Germany
Razoron
OP
Senior Member
|
OP
Senior Member
Joined: May 2009
Posts: 445
Peine, Germany
|
Hi, the message recieved by the disconnect event is always wrong. I disoconnect with:
enet_disconnect_client(i, "restart");
and recieve with
STRING* savemsg = str_create(msg); // Save the message
But I always get something like this: The right string and some random charachters depending on the string length. Any suggestions?
Last edited by Razoron; 10/01/10 13:43.
|
|
|
Re: [ANet] Disconnect message
[Re: Razoron]
#342834
10/01/10 14:04
10/01/10 14:04
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
try: STRING* savemsg = str_create(""); str_cpy(savemsg, msg);
it works for me.
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: [ANet] Disconnect message
[Re: Germanunkol]
#342835
10/01/10 14:06
10/01/10 14:06
|
Joined: Jun 2008
Posts: 428
Rasch
Senior Member
|
Senior Member
Joined: Jun 2008
Posts: 428
|
str_create isnt really necessary i think. STRING* savemsg = ""; str_cpy(savemsg, msg); that should do it
|
|
|
Re: [ANet] Disconnect message
[Re: Rasch]
#342942
10/02/10 11:21
10/02/10 11:21
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Update to the latest ANet version 1.3.2.0. This was a Bug that occured with the old ANet version(s) if you used Gamestudio A7.84 or higher.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: [ANet] Disconnect message
[Re: Razoron]
#343105
10/03/10 17:29
10/03/10 17:29
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Make sure you also updated the anet.h. Otherwise, the bug will still occure.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: [ANet] Disconnect message
[Re: Dark_samurai]
#343107
10/03/10 18:24
10/03/10 18:24
|
Joined: May 2009
Posts: 445 Peine, Germany
Razoron
OP
Senior Member
|
OP
Senior Member
Joined: May 2009
Posts: 445
Peine, Germany
|
Latest A7 Engine. Latest ANet. You have forgotten to update the ANet in the current ANet version you can download. The header says: //////////////////////////////////////////////////////////////////////////////// //filename: anet.h //copyright: Peter Soxberger //autor: Peter Soxberger //last change: 18.09.2010 //version: 1.3.0.3 //Describtion: lite-c header for ANet.dll (by Peter Soxberger) //Notes: For a detailed describtion of each function look into the // manual, please! // Visit: www.anet-plugin.com//////////////////////////////////////////////////////////////////////////////// The date seems valid, but the version is still old.
Last edited by Razoron; 10/03/10 20:00.
|
|
|
Re: [ANet] Disconnect message
[Re: Razoron]
#343218
10/04/10 15:02
10/04/10 15:02
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
No, I only forgot to update the version field.
I will do some tests, sounds like a bug to me.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
|