GammaÃâžÂ Posted November 10, 2010 Author Share Posted November 10, 2010 Hello,I was making an announcement system, and then when i compiled the server i got this error:![](http://img526.imageshack.us/img526/7831/errortit.png)I hope someone can help meGammaâ„¢ Link to comment Share on other sites More sharing options...
GammaÃâžÂ Posted November 10, 2010 Author Share Posted November 10, 2010 Bump Link to comment Share on other sites More sharing options...
Robin Posted November 10, 2010 Share Posted November 10, 2010 "Dim Announcement" is declaring it as a variant. It needs to be "Dim Announcement as String"As well as that, you're reading the string from the buffer which you've only just initialised. It'll be empty no matter what you do, and it'll probably throw some error regarding the header position.I suggest you go look at how packets are handled because what you have here is a real bastardisation. Link to comment Share on other sites More sharing options...
GammaÃâžÂ Posted November 11, 2010 Author Share Posted November 11, 2010 Thanks Robin but now i have another problem:When it sends the packet to the server it gets an error:![](http://img59.imageshack.us/img59/4315/sadasdsadasdasd.png)When i press Debug:![](http://img441.imageshack.us/img441/5586/sdfsdfsdfs.png) Link to comment Share on other sites More sharing options...
Robin Posted November 11, 2010 Share Posted November 11, 2010 @Robin:> **As well as that, you're reading the string from the buffer which you've only just initialised. It'll be empty no matter what you do, and it'll probably throw some error regarding the header position.> > I suggest you go look at how packets are handled because what you have here is a real bastardisation.** Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now