jamboy1 Posted July 26, 2008 Share Posted July 26, 2008 This mod explains itself, it's like having to goto jail, but you can also go to hospital too, this hasn't had much testing, so may need a little editing in docrime.php first run this query You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now find in docrime.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add Below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I'm not good with the staff panel part so you will need to add crimes using phpmyadmin, anyway if this doesn't work please allow a better coder than me to help I'd like to thank iamwicked for helping me with this mod :) Quote Link to comment Share on other sites More sharing options...
-HIGH- Posted July 26, 2008 Share Posted July 26, 2008 Re: Crimes (Players Can Go To Hospital) [V2] What the hell? Why would you want to go to jail and hospital at same time? Quote Link to comment Share on other sites More sharing options...
pbgalaxy Posted July 26, 2008 Share Posted July 26, 2008 Re: Crimes (Players Can Go To Hospital) [V2] Thanks. and to the person above...just set jail time to 0? Quote Link to comment Share on other sites More sharing options...
jamboy1 Posted July 26, 2008 Author Share Posted July 26, 2008 Re: Crimes (Players Can Go To Hospital) [V2] In the jail text if you'd like the crime to be hospital only you could leave it blank or put a tag is such as Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 26, 2008 Share Posted July 26, 2008 Re: Crimes (Players Can Go To Hospital) [V2] You must be talkin about crimes that somne send you to jail and some send you to hospital like say rob a bank and u get shot hosp instead of jail ahhhhhhhhhh i seeeeee........i wanted this to but ehhh it would be some editing im shure.... :? :? :? :-) :-D Quote Link to comment Share on other sites More sharing options...
jds137 Posted July 26, 2008 Share Posted July 26, 2008 Re: Crimes (Players Can Go To Hospital) [V2] #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TABLE `crimes` ADD `crimeHREASON` varchar(255) NOT NULL default '',' at line 3 Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted July 26, 2008 Share Posted July 26, 2008 Re: Crimes (Players Can Go To Hospital) [V2] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TABLE `crimes` ADD `crimeHREASON` varchar(255) NOT NULL default '',' at line 3 Quote Link to comment Share on other sites More sharing options...
jamboy1 Posted July 26, 2008 Author Share Posted July 26, 2008 Re: Crimes (Players Can Go To Hospital) [V2] #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TABLE `crimes` ADD `crimeHREASON` varchar(255) NOT NULL default '',' at line 3 add qeury from magictallguy i added them seperately,i'm not too good with adding to SQL so usuallydo it one by one Quote Link to comment Share on other sites More sharing options...
Uriah Posted July 26, 2008 Share Posted July 26, 2008 Re: Crimes (Players Can Go To Hospital) [V2] jamboy1, you could try replacing the "new crime" and "edit crime" sections of your staff_crimes.php with the following for staff panel editing... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. No guarantees on this lol, it is how I have it set up for me, but I know nothing!!!!! My SQL is added to match the order of this, not in a block at the end of the original table, so you may have to check your own and reorder either the coding to match the sql or the other way round.. Quote Link to comment Share on other sites More sharing options...
jamboy1 Posted July 27, 2008 Author Share Posted July 27, 2008 Re: Crimes (Players Can Go To Hospital) [V2] jamboy1, you could try replacing the "new crime" and "edit crime" sections of your staff_crimes.php with the following for staff panel editing... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. No guarantees on this lol, it is how I have it set up for me, but I know nothing!!!!! My SQL is added to match the order of this, not in a block at the end of the original table, so you may have to check your own and reorder either the coding to match the sql or the other way round.. ok thanks for that :) Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted July 27, 2008 Share Posted July 27, 2008 Re: Crimes (Players Can Go To Hospital) [V2] i made a cool crimes once had hospital extras given etc... just finished one actually might release it soon Quote Link to comment Share on other sites More sharing options...
jamboy1 Posted July 28, 2008 Author Share Posted July 28, 2008 Re: Crimes (Players Can Go To Hospital) [V2] Well, i can't wait to see it, it will beat my crappy version :P Quote Link to comment Share on other sites More sharing options...
danger boy Posted July 28, 2008 Share Posted July 28, 2008 Re: Crimes (Players Can Go To Hospital) [V2] Well, i can't wait to see it, it will beat my crappy version :P Lol dosnt matter if yours is "crap" you should be proud of what you have made atleast you have made something. To be honest it isn't crap i wont be using it but it does look good keep the good work up mate. Quote Link to comment Share on other sites More sharing options...
jamboy1 Posted July 28, 2008 Author Share Posted July 28, 2008 Re: Crimes (Players Can Go To Hospital) [V2] Well, i can't wait to see it, it will beat my crappy version :P Lol dosnt matter if yours is "crap" you should be proud of what you have made atleast you have made something. To be honest it isn't crap i wont be using it but it does look good keep the good work up mate. Thanks for te compliment :D the reason i did post it was coz i did make it, but i find it may have a few bugs Quote Link to comment Share on other sites More sharing options...
endo Posted August 18, 2008 Share Posted August 18, 2008 Re: Crimes (Players Can Go To Hospital) [V2] hmm good mod but id add in in docrime.php so that if the hosptime is above 0 add in the 3rd chance of failing a crime not 100% sure on how to do this but im workin on it :D something like this may work though Ok tested this several times over and this does work as far as i can see. any problems just post em up. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 29, 2008 Share Posted November 29, 2008 Re: [mccode v2] Crimes (Players Can Go To Hospital) i actually really like this mod as its a little different and say if you made a crime like say you saw an aston martin with the keys in the car you could make it saying you trip up and injusre your self badly your in hospital Quote Link to comment Share on other sites More sharing options...
ronhouston2 Posted December 28, 2008 Share Posted December 28, 2008 Re: [mccode v2] Crimes (Players Can Go To Hospital) I will Probly Make a New area insted of Crime do Missions and Have the players go into the Hospital insted of Jail Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 24, 2016 Share Posted April 24, 2016 For some reason it keeps validating as incorrect format after I create a new crime You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 25, 2016 Share Posted April 25, 2016 Are you filling out all the fields correctly? Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 25, 2016 Share Posted April 25, 2016 Well the money & crystals are set to 0 and it would only be items. But the if empty clause is there to allow that. Quote Link to comment Share on other sites More sharing options...
TheMasterGeneral Posted April 25, 2016 Share Posted April 25, 2016 IIRC, MCCodes's staff panel is setup weirdly. Change the "empty" to "isset" and it should work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.