Halo Posted March 29, 2008 Share Posted March 29, 2008 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! Quote Link to comment Share on other sites More sharing options...
Richard Posted March 29, 2008 Share Posted March 29, 2008 Re: [v1]Attack Stats FREE[v1] Very nice :) Quote Link to comment Share on other sites More sharing options...
Halo Posted March 29, 2008 Author Share Posted March 29, 2008 Re: [v1]Attack Stats FREE[v1] Thanks Quote Link to comment Share on other sites More sharing options...
ronhouston2 Posted March 29, 2008 Share Posted March 29, 2008 Re: [v1]Attack Stats FREE[v1] Will this work for V2????????? or is there a way to make one for V2 thanks Quote Link to comment Share on other sites More sharing options...
Klikoka Posted March 29, 2008 Share Posted March 29, 2008 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. Quote Link to comment Share on other sites More sharing options...
Halo Posted March 30, 2008 Author Share Posted March 30, 2008 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! Quote Link to comment Share on other sites More sharing options...
Halo Posted April 5, 2008 Author Share Posted April 5, 2008 Re: [v1]Attack Stats FREE[v1] Yes i tested this on my v2 game it should work Quote Link to comment Share on other sites More sharing options...
The Ace Posted April 5, 2008 Share Posted April 5, 2008 Re: [v1]Attack Stats FREE[v1] Whereabouts do I add the code in the files? Quote Link to comment Share on other sites More sharing options...
Halo Posted April 5, 2008 Author Share Posted April 5, 2008 Re: [v1]Attack Stats FREE[v1] Whereabouts do I add the code in the files? Where the queries are, around the bottom Quote Link to comment Share on other sites More sharing options...
KDawg08 Posted April 5, 2008 Share Posted April 5, 2008 Re: [v1]Attack Stats FREE[v1] I am currently using this mod. Works wonderfully, Thanks a lot! :) Members Love it. Quote Link to comment Share on other sites More sharing options...
Halo Posted April 5, 2008 Author Share Posted April 5, 2008 Re: [v1]Attack Stats FREE[v1] Thanks Quote Link to comment Share on other sites More sharing options...
KDawg08 Posted April 6, 2008 Share Posted April 6, 2008 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-> Quote Link to comment Share on other sites More sharing options...
Halo Posted April 6, 2008 Author Share Posted April 6, 2008 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 Quote Link to comment Share on other sites More sharing options...
KDawg08 Posted April 6, 2008 Share Posted April 6, 2008 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 :) Quote Link to comment Share on other sites More sharing options...
Halo Posted April 6, 2008 Author Share Posted April 6, 2008 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! Quote Link to comment Share on other sites More sharing options...
The Ace Posted April 6, 2008 Share Posted April 6, 2008 Re: [v1]Attack Stats FREE[v1] Thanks for this mod! +1! Works fine for me now! :-P Quote Link to comment Share on other sites More sharing options...
gulley Posted September 23, 2008 Share Posted September 23, 2008 Re: [v1]Attack Stats FREE[v1] How do you add it to index what do you put in to get the zeros up? Quote Link to comment Share on other sites More sharing options...
gulley Posted September 23, 2008 Share Posted September 23, 2008 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 Quote Link to comment Share on other sites More sharing options...
Joel Posted September 23, 2008 Share Posted September 23, 2008 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? Quote Link to comment Share on other sites More sharing options...
War_Hero Posted September 23, 2008 Share Posted September 23, 2008 Re: [v1]Attack Stats FREE[v1] Query was UPDATE users SET mmugged=mmugged+ WHERE userid=1 You're missing something after the mmugged=mmugged+. ;) That field in the user's table needs to go up when a user successfully mugs someone. :) Quote Link to comment Share on other sites More sharing options...
SpEcKs Posted September 24, 2008 Share Posted September 24, 2008 Re: [v1]Attack Stats FREE[v1] so does this work ? Quote Link to comment Share on other sites More sharing options...
Guest Sniko` Posted September 24, 2008 Share Posted September 24, 2008 Re: [v1]Attack Stats FREE[v1] Nice LoL Esy But Thanks For The Contrubution To CE Quote Link to comment Share on other sites More sharing options...
gulley Posted September 24, 2008 Share Posted September 24, 2008 Re: [v1]Attack Stats FREE[v1] Could Any one tell me what i have dont wrong? ..Thanks .xX Quote Link to comment Share on other sites More sharing options...
gurpreet Posted January 18, 2009 Share Posted January 18, 2009 Re: [mccode v1]Attack Stats Can't get this to work: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Done at least 20 hosps and lots of money mugged. Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted January 18, 2009 Share Posted January 18, 2009 Re: [mccode v1]Attack Stats you put the information in the wrong attack files i would say.... When I bought v2 the attack files where not right. attackleave was for muggin and such. 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.