BaLoP Posted March 1, 2011 Posted March 1, 2011 this is just a small mod it just allows user to punch someone and it gives the user a event saying they where punched and it will also show how many people you have punched on your profile ok add punches int 11 default 0 into your users table then make a file called punch.php and in it put You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to viewuser.php 1 Quote
War_Hero Posted March 1, 2011 Posted March 1, 2011 This is a good little feature, but I did notice something: you're not checking to see if the $_GET['id'] contains a valid userid. After You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. you should add in: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and then run the rest of the code. Just a bit of error checking. :) Quote
Zan Posted March 1, 2011 Posted March 1, 2011 TIve seen one same like this before ha! now i remember ...NUDGE USER BY JOEL Quote
chicka Posted March 1, 2011 Posted March 1, 2011 I've had this exact mod in my game for years. I called it slap.php. same thing.. My players love it Quote
Equinox Posted March 1, 2011 Posted March 1, 2011 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
BaLoP Posted March 1, 2011 Author Posted March 1, 2011 thanks for the feedback and thanks Equinox for the better coded one Quote
Equinox Posted March 1, 2011 Posted March 1, 2011 Just really coded to my preference and implementing War_Hero's code, it's a simple addition to a game but some people may like it, I dunno :) Quote
Zan Posted March 2, 2011 Posted March 2, 2011 Chicka is this wat u r talking abt? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
BaLoP Posted March 2, 2011 Author Posted March 2, 2011 i never seen that before but you guys can think what you want to think i can see why you think it but i really made myself Quote
chicka Posted March 2, 2011 Posted March 2, 2011 i never seen that before but you guys can think what you want to think i can see why you think it but i really made myselfi'm not accusing you of anything. I think its a great mod and i'm sure you did code it.. All i'm saying is that I have this exact same idea in my game that I coded a while ago. The coding is different a little but none the less its the same. the only difference between this one and mine is I have it so they can only slap that user once a day. Quote
Galahad Posted March 14, 2011 Posted March 14, 2011 Very nice mod. I was thinking about making a similar mod like this for EzRPG. I'm going to attempt to convert it Quote
Tangled Posted October 16, 2014 Posted October 16, 2014 (edited) can someone help I have V2: I get this error: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/killersi/public_html/punch.php:2) in /home/killersi/public_html/globals.php on line 28 It also says User does not exhist. I tried the original post here as well as what Equinox posted. with those I got critical errors: line 28 in globals.php is: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Punch SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. -------------------------------------------------------- punch.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ==================================================== then add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then add to viewuser.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited October 16, 2014 by Tangled Quote
Tangled Posted October 16, 2014 Posted October 16, 2014 G7470 fixed me Thank you G! in the view user find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and change it to this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. the punch.php from the original post from BaLoP and Equinox worked but it had to be tweeked around to make it work. 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.