brandon_1243 Posted February 23, 2008 Posted February 23, 2008 First edited mod so don't know if it works but please correct me if its wrong EDITED SEANYBOBS MOD HOPE YOU DON'T MIND SEANYBOB. -- create a new file name it Gift.php -- add the code below to it You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. -- Then open Mainmenu.php and add to it You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. -- Then Open Up Php My Admin and You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And i Think Thats All right Thanks And Hope You Don't Mind Me Editng It seanybob Quote
Lunny Posted February 23, 2008 Posted February 23, 2008 Re: Gift.php [edited] Hey Brandon. Erm.. I'm not sure if your SQL is correct. From what I've seen in other mods, shouldn't it be like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Just helping :-) Quote
Ishy Posted February 23, 2008 Posted February 23, 2008 Re: Gift.php [edited] LOL alter table USERS gift int 11 not null default 0 Bran, I tihnk yuo SQL makes loads of sense LOL I think we could make that work :-D Quote
Klikoka Posted February 23, 2008 Posted February 23, 2008 Re: Gift.php [edited] Hey Brandon. Erm.. I'm not sure if your SQL is correct. From what I've seen in other mods, shouldn't it be like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This SQL Is The Right One Just helping :-) Quote
brandon_1243 Posted February 23, 2008 Author Posted February 23, 2008 Re: Gift.php [edited] ok guys sorry about it and thanks for correcting i am new to this and hope fully soon will be quite good in like 2 years or so i am going to try edit someones honor awards so i have one and i will post that free i will have different features in it thanks again guys Brandon_1243 Quote
Reaper Posted July 15, 2008 Posted July 15, 2008 Re: Gift.php [edited] im confused with wot im putting in can anyone help me with it plz there are 2 things saying different things that goes in the SQL tables witch one do i use Quote
Strats Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] Sorry to bring up an old topic but it's better than making a random new one. I have tried out this mod but I keep getting : Parse error: syntax error, unexpected ',' in /home/******/public_html/gift.php on line 10 Which is : die(Sorry, You Can Only Do This Once A Day"); I can't see what is wrong. Can someone tell me please? Quote
mentaljason Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] strats try this, die("Sorry, You Can Only Do This Once A Day"); i belive it was missing the speach marks for the text at the beggining... not sure. i think it is though as it is an unexpected , because that will do something else in code and the sorry, isnt inside the speach marks.... so that should work... Quote
Strats Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] I thought that too, I did change it but still get this error: Parse error: syntax error, unexpected T_IF in /home/******/public_html/gift.php on line 13 which is : if (auto = 1) then the rest of the code is ... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
mentaljason Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] Line 13 is the whole $auto thing, this will be because there is no functions for $auto.... Quote
mentaljason Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] and your line 13 is fixed.... $auto = (int)rand(1, 6) if ($auto = 1) This is so poorly coded... and thats comming from me! Quote
mentaljason Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] FIxed, added it just to fix it.... Damn he had stuff like money"money instead of money=money and missed ; off the end of queries etc and some queries were off the original vertion (calling for thanks instead of gifts +1 ) i fixed it pluss 1 me please You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Strats Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] Nah it still don't work. This is poorly made. I wont add it to me game. Quote
mentaljason Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] whats your new error? Quote
Strats Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] Don't matter i don't want to use it now Quote
mentaljason Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] it does nw i modified my posted fix.. it works Quote
Uridium Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] Yep Gotta Agree worked for me to as i used Jasons Copy Quote
Strats Posted April 20, 2009 Posted April 20, 2009 Re: [mccode v2] Gift.php [edited] Great work! Quote
mentaljason Posted April 21, 2009 Posted April 21, 2009 Re: [mccode v2] Gift.php [edited] i done some research on CE about this mod and found the original, all's you have done is messed with t so it doesn't work, i fixed that and you have revoved 4 of the other possible random things and instead of it updating the field thanks you have replaced it with gift.... Can you tell us what you have changed for the better, or did you just think this mod is on a high page no-one will ever see it maybe i can post it and claim i have done something good to it. well you havent XD Quote
BlueDevil23 Posted April 21, 2009 Posted April 21, 2009 Re: [mccode v2] Gift.php [edited] First edited mod so don't know if it works but please correct me if its wrong EDITED SEANYBOBS MOD HOPE YOU DON'T MIND SEANYBOB. ... And i Think Thats All right Thanks And Hope You Don't Mind Me Editng It seanybob Give him a break, he's trying, and at least giving credit. Quote
mentaljason Posted April 22, 2009 Posted April 22, 2009 Re: [mccode v2] Gift.php [edited] yea but he hasnt even changed it... i would rather use the original but its not that good a mod anyway XD Quote
Strats Posted April 23, 2009 Posted April 23, 2009 Re: [mccode v2] Gift.php [edited] This works, but the cron does not. What should it be? Quote
Zero-Affect Posted April 30, 2009 Posted April 30, 2009 Re: [mccode v2] Gift.php [edited] yea but he hasnt even changed it... i would rather use the original but its not that good a mod anyway XD ^ you can't really talk the coding below is horrid i wouldn't consider that a 4am on acid lol FIxed, added it just to fix it.... Damn he had stuff like money"money instead of money=money and missed ; off the end of queries etc and some queries were off the original vertion (calling for thanks instead of gifts +1 ) i fixed it pluss 1 me please You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. one word for you mate optimize. Stop picking on noobs because karma is a b!tch IE: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. there is a much easier way but would need to recode the lot lol but my times precious :-o Quote
Strats Posted May 1, 2009 Posted May 1, 2009 Re: [mccode v2] Gift.php [edited] Nice to see someone stand up for learners :wink: 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.