Jump to content
MakeWebGames

Punch


BaLoP

Recommended Posts

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

  • Like 1
Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

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
i'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.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 years later...

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 by Tangled
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...