[Uber]RP[Uber]

Status
Not open for further replies.

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
You guys already know what I'm developing.If not go on the chatbox more often and you will know or read my signature.Anyways I have done some RP commands in about 3 days and now I'm having trouble with 911 command.

Code:
case "911":
                        {
                            if (copCdLooper != null)
                            {
                               Session.SendNotif("BK" + "Sorry, but you have to wait to send another 911 call.");
                            }
                            else
                            {
                                int isArrested;
                                int copID;
                                using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
                                {
                                    isArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + Params[1] + "'");
                                    copID = dbClient.getInt("SELECT id FROM police_call");
                                }
                                if (isArrested == 0)
                                {
                                    string cfhMessage = Text.Substring(3);
                                    Room.sendSaying(roomUser, "*calls the police for help*");
                                    userManager.sendToCop(1, false, "BK" + "Caller: " + Params[1] + "\rMessage: " + cfhMessage + "\rRoom ID: " + _roomID);

                                    ThreadStart copCdStarter = new ThreadStart(copCoolDown);
                                    copCdLooper = new Thread(copCdStarter);
                                    copCdLooper.Priority = ThreadPriority.Lowest;
                                    copCdLooper.Start();
                                    return true;
                                }
                            }
                        }
                        return false;

Anyways the Error is this

Code:
Error	1	'object' does not contain a definition for 'Priority' and no extension method 'Priority' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)	C:\Users\Benny\Desktop\Slaxxer's UberEmu v3\HabboHotel\Misc\ChatCommandHandler.cs	228	49	uberEmu edited by Slaxxer

Code:
Error	2	'object' does not contain a definition for 'Start' and no extension method 'Start' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)	C:\Users\Benny\Desktop\Slaxxer's UberEmu v3\HabboHotel\Misc\ChatCommandHandler.cs	229	49	uberEmu edited by Slaxxer

Anyone can help so I can go on to other RP command?
 
Status
Not open for further replies.

Users who are viewing this thread

Top