C# Help Command

LoneZZ

Member
Oct 8, 2011
56
1
Hi guys, I added an announcement thingy to my CMS - - that is linked to the database, i added a table there called announcement, and am trying to make this editable via a command in-game. Heres what I did so far:

Code:
 #region :ancm
                        // changes announcement on cms
                    case "ancm":
                        using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                        {
                            if (_Rank > 6)
                            {
                                dbClient.runQuery("UPDATE announcement SET message = " + Message + " WHERE id = '1'");
                                Room.sendSaying(roomUser, "*Changes CMS Announcement*");
 
                            }
                            else
                            {
                                sendData("BK" + "You do not have enough rights");
                            }
                            break;
                        }
                    #endregion

and get this error in VB:

I know it has something to do with "+ Message +" but I don't know what to put there instead. The emu I'm using is Holograph v26 and the CMS is PHP Retro 4. Anyone have a fix? Thanks in advance
 

Users who are viewing this thread

Top