Jump to content
MakeWebGames

[mccode v1]Attack Stats


Halo

Recommended Posts

A simple mod that took me only 5mins to code, tested and working!

This Shows All The Attack Stats Of A User

SQL QUERY

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add in attacklost.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add in attackmug.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add in attackhosp.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add in attackleave.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add in viewuser.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And your done!

Link to comment
Share on other sites

Re: [v1]Attack Stats FREE[v1]

 

Will this work for V2????????? or is there a way to make one for V2 thanks

Just Change

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

To

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: [v1]Attack Stats FREE[v1]

This should be V2

This Shows All The Attack Stats Of A User

SQL QUERY

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add in attacklost.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add in attackwon.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add in attackbeat.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add in attacktake.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add in viewuser.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And your done!

Link to comment
Share on other sites

Re: [v1]Attack Stats FREE[v1]

I found one bug...

in attacklost.php you said put:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

There was one thing you forgot though...

It won't add that to Total Attacks

It also won't add total times attacked...

I did this for mine...

INPUT THIS IN ATTACKLOST.PHP

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

just replace the mysql_ with $db->

Link to comment
Share on other sites

Re: [v1]Attack Stats FREE[v1]

 

I found one bug...

in attacklost.php you said put:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

There was one thing you forgot though...

It won't add that to Total Attacks

It also won't add total times attacked...

I did this for mine...

INPUT THIS IN ATTACKLOST.PHP

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

just replace the mysql_ with $db->

Oh yeah forgot anout that, thx for the post

Link to comment
Share on other sites

Re: [v1]Attack Stats FREE[v1]

One more edit...

Hospitalized is spelt wrong, so u may want to change it from Hospilatized the L and the T are backwards.

Add the last post and this one into your original post for those that are too lazy to scroll for the updates :)

Link to comment
Share on other sites

Re: [v1]Attack Stats FREE[v1]

 

One more edit...

Hospitalized is spelt wrong, so u may want to change it from Hospilatized the L and the T are backwards.

Add the last post and this one into your original post for those that are too lazy to scroll for the updates :)

Done!

Link to comment
Share on other sites

  • 5 months later...

Re: [v1]Attack Stats FREE[v1]

what has happened?

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 'WHERE userid=1' at line 1

Query was UPDATE users SET mmugged=mmugged+ WHERE userid=1

Link to comment
Share on other sites

Re: [v1]Attack Stats FREE[v1]

 

what has happened?

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 'WHERE userid=1' at line 1

Query was UPDATE users SET mmugged=mmugged+ WHERE userid=1

Lol whats the query line?

Link to comment
Share on other sites

  • 3 months later...

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