Halo Posted April 13, 2008 Posted April 13, 2008 Create A File Called Assassin.php with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find in viewuser.php [Attack] Then add [Assassinate] Quote
Knuckles25 Posted April 13, 2008 Posted April 13, 2008 Re: [v2]Assassin.php[v2] Thanks Mate Been Looking For Something Like This When I Try This It Says Parse error: syntax error, unexpected '"', expecting ']' in /home/*****/public_html/assassin.php on line 32 Quote
topmorpg Posted April 13, 2008 Posted April 13, 2008 Re: [v2]Assassin.php[v2] Where to start. there is many holes in this post its unbelievable. I just spent the good part of the last 20 minutes working on it. and I think im better off to code it out myself and post it. I've made a lot of headway on it however will not work entirely till its fully worked out and tested. Here it is. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
danger boy Posted April 13, 2008 Posted April 13, 2008 Re: [v2]Assassin.php[v2] i get this errorr when people are trying to assassinate someone QUERY ERROR: 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 'brave=brave-5 WHERE userid=1' at line 1 Query was UPDATE users SET money=money-,brave=brave-5 WHERE userid=1 can anyone help? Quote
topmorpg Posted April 13, 2008 Posted April 13, 2008 Re: [v2]Assassin.php[v2] i get this errorr when people are trying to assassinate someone QUERY ERROR: 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 'brave=brave-5 WHERE userid=1' at line 1 Query was UPDATE users SET money=money-,brave=brave-5 WHERE userid=1 can anyone help? read my above message in my recode. Its to far screwed up. I will need a day just to recode it alone. better just to do it from scratch. Quote
Guest Anonymous Posted April 13, 2008 Posted April 13, 2008 Re: [v2]Assassin.php[v2] UPDATE users SET money=money-NUMBER,brave=brave-5 WHERE userid=1 Ah, the dangers of NOT checking your input correctly. Make SURE $_GET['paid'] is initialized to an integer prior to calling this query. See http://criminalexistence.com/ceforums/i ... ic=18748.0 Quote
Halo Posted April 14, 2008 Author Posted April 14, 2008 Re: [v2]Assassin.php[v2] I never had time to test it so i couldn't check if it had any errors Quote
Danger-Hazard Posted April 14, 2008 Posted April 14, 2008 Re: [v2]Assassin.php[v2] Hasnt This Mod Already Been Made ? Quote
Halo Posted April 15, 2008 Author Posted April 15, 2008 Re: [v2]Assassin.php[v2] Hasnt This Mod Already Been Made ? The original mod was even worse Quote
Danger-Hazard Posted April 17, 2008 Posted April 17, 2008 Re: [v2]Assassin.php[v2] True ... But what makes yours any better ? Quote
Halo Posted April 17, 2008 Author Posted April 17, 2008 Re: [v2]Assassin.php[v2] True ... But what makes yours any better ? Lol, i know mine never worked i will fix it when i have time Quote
nedved Posted January 2, 2009 Posted January 2, 2009 Re: [v2]Assassin.php[v2] I'm still waiting for the fixes xD. Will anyone try and fix it please :P Thanks Quote
gurpreet Posted January 2, 2009 Posted January 2, 2009 Re: [v2]Assassin.php[v2] Same...I'll +1 whoever can do this properly Quote
Lithium Posted January 2, 2009 Posted January 2, 2009 Re: [v2]Assassin.php[v2] I'm still waiting for the fixes xD. Will anyone try and fix it please :P Thanks Well... for the age of the post... you could try and fix it... :) Quote
mikrows Posted January 3, 2009 Posted January 3, 2009 Re: [v2]Assassin.php[v2] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find in viewuser.php [Attack] Then add [Assassinate] FIXED AND TESTED Quote
velocityislands Posted January 10, 2009 Posted January 10, 2009 Re: [v2]Assassin.php[v2] Fair play for the fix, and many thanks for the link +10 there matey Quote
Shivski Posted January 17, 2009 Posted January 17, 2009 Re: [v2]Assassin.php[v2] Im getting You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Any idea? Quote
Dave Posted January 17, 2009 Posted January 17, 2009 Re: [v2]Assassin.php[v2] Im getting You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Any idea? You need {$_GET['user']} You cannot just wack in the file name into your browser. You need to go to someones profile and click the link. Quote
Shivski Posted January 17, 2009 Posted January 17, 2009 Re: [v2]Assassin.php[v2] Cool, just thought i'd see it like I try most of my mods, will try it out in a bit :) Quote
Shivski Posted January 17, 2009 Posted January 17, 2009 Re: [v2]Assassin.php[v2] Can confirm this works now :D Quote
Shivski Posted January 19, 2009 Posted January 19, 2009 Re: [v2]Assassin.php[v2] I have had reports that on using this on Friday , the player that gets hit has been in hospital over the weekend on -2mins? Quote
The Ace Posted January 19, 2009 Posted January 19, 2009 Re: [v2]Assassin.php[v2] The reason this happened is most likely because of: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. on line 64 Here is that segment of code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Is it just me or should the - sign be a + sign?? Quote
Haunted Dawg Posted January 19, 2009 Posted January 19, 2009 Re: [v2]Assassin.php[v2] Quick formula: $newhosp = ($hospital - 150); if($newhosp < 0) { $newhosp = rand(1,25); } Quote
mikrows Posted January 19, 2009 Posted January 19, 2009 Re: [v2]Assassin.php[v2] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find in viewuser.php [Attack] Then add [Assassinate] FIXED AND TESTED Thanks , That was somthing I missed while trying to fix the codes, I have edited the code and that is now sorted. I basicaly just changed the -150 to -120. $newhosp=$hospital-120; or you could swap this line to: $newhosp=(int)(rand(5,60)); Quote
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.