gurpreet Posted January 20, 2009 Share Posted January 20, 2009 I know 90% of people, if not 100% will know how to do this, but this is just here to help people. This is basically to make it so you can give donatordays and such to new users. The highlighted bits is what you change for donatordays. $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 5, 2, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); The bold text is crystal amount when they join, glowing is the donatordays. (cant use code tags or the glow won't show!) Quote Link to comment Share on other sites More sharing options...
Djkanna Posted January 20, 2009 Share Posted January 20, 2009 Re: Simple register edit Simple but even i didn't know that when i started so usefull for us n00bs +1 mate :wink: Quote Link to comment Share on other sites More sharing options...
gurpreet Posted January 20, 2009 Author Share Posted January 20, 2009 Re: Simple register edit Simple but even i didn't know that when i started so usefull for us n00bs +1 mate :wink: Hehe thanks, people on my game said let newbies try out donator features for a day or 2, which will make people see the features and in time donate ;) Quote Link to comment Share on other sites More sharing options...
jds137 Posted January 20, 2009 Share Posted January 20, 2009 Re: Simple register edit Lets not forget starter packs work well too. Quote Link to comment Share on other sites More sharing options...
Djkanna Posted January 21, 2009 Share Posted January 21, 2009 Re: Simple register edit Lets not forget starter packs work well too. Correct thats my perfered method lol Quote Link to comment Share on other sites More sharing options...
jpoke5 Posted January 22, 2009 Share Posted January 22, 2009 Re: Simple register edit This is great but i dont see a way to up the starting money> $sm How can i adjust the money a user starts the game with?? Thanks!! Jeff Quote Link to comment Share on other sites More sharing options...
gurpreet Posted January 22, 2009 Author Share Posted January 22, 2009 Re: Simple register edit This is great but i dont see a way to up the starting money> $sm How can i adjust the money a user starts the game with?? Thanks!! Jeff Simple, just look for the variable $sm in your register file. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edit the number to whatever you want the users money to be. Quote Link to comment Share on other sites More sharing options...
jpoke5 Posted January 22, 2009 Share Posted January 22, 2009 Re: Simple register edit awesome, Thanks for the help!! Lots of people on this forum get mad because a noob dont know his way around. Then there is guys like you who dont mind the stupid noob questions and help out when a guy is stuck. Jeff Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted January 22, 2009 Share Posted January 22, 2009 Re: Simple register edit Maybe because he is a n00b himself? Quote Link to comment Share on other sites More sharing options...
gurpreet Posted January 22, 2009 Author Share Posted January 22, 2009 Re: Simple register edit And I admit I'm a noob. Now just piss off if you got nothing better to do except flame people who aren't as good as you at coding. Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted January 22, 2009 Share Posted January 22, 2009 Re: Simple register edit You see... I was not trying to flame there so there is one wrong ;) Quote Link to comment Share on other sites More sharing options...
gurpreet Posted January 22, 2009 Author Share Posted January 22, 2009 Re: Simple register edit Nope, I didn't state you were flaming me, I stated you flame people who aren't as good as you at coding. I've seen it before, and no, I won't post the links or w.e because we both know you do. Quote Link to comment Share on other sites More sharing options...
webster2001 Posted January 23, 2009 Share Posted January 23, 2009 Re: Simple register edit Nope, I didn't state you were flaming me, I stated you flame people who aren't as good as you at coding. I've seen it before, and no, I won't post the links or w.e because we both know you do. Well said there, I couldnt agree more :-D :-D :-D :evil: <- killah 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.