SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 31/07/2012, 01:07 AM   #1
kelvin22
Big Clucker
 
kelvin22's Avatar
 
Join Date: Apr 2011
Location: Bathroom!
Posts: 91
Reputation: 19
Lightbulb [PHP/MySQL] Powerup Stats - Player stats signature generator

Powerup stats
First Release.

Description
This is a php script which get player stats from a mysql database and "print" then into a image you can use your own design aswell down there is a example usage, also you need to change mysql variables also the configs @ config.php. If you got any problem you can write it down there.
Have a good day.

Example


Credits
Kelvin22 - Scripting/testing
Strawhat - Testing
Nodroz - Idea / Old tutorial

License
You can:
- Use this,
- Modify this,
- Redistribute this.

You can't:
- Remove the credits,
- Say that you created this.

Requiments
Web host
- GD libraries,
- PHP,
- MySQL.

Installition
MySQL conenction
- Replace lines 7 - 10 @ config.php with your MySQL database settings.

Other
- Replace line 13 with your fontname include .ttf @ config.php and line 14 @ config.php with your website url
- Note you can change MySQL variables on lines 12-15 @ signature.php

Download
Non base64 encoded
Base64 encoded

__________________



Last edited by kelvin22; 06/08/2012 at 08:15 AM.
kelvin22 is offline   Reply With Quote
Old 31/07/2012, 01:08 AM   #2
FireCat
High-roller
 
FireCat's Avatar
 
Join Date: Jul 2010
Posts: 2,322
Reputation: 609
Default Re: [PHP/MySQL] Powerup Stats - Player stats signature generator

Nice
FireCat is offline   Reply With Quote
Old 31/07/2012, 07:36 AM   #3
kelvin22
Big Clucker
 
kelvin22's Avatar
 
Join Date: Apr 2011
Location: Bathroom!
Posts: 91
Reputation: 19
Default Re: [PHP/MySQL] Powerup Stats - Player stats signature generator

@FireCat

Thanks dude.
__________________


kelvin22 is offline   Reply With Quote
Old 31/07/2012, 07:39 AM   #4
Firzendxiw
Big Clucker
 
Firzendxiw's Avatar
 
Join Date: Oct 2008
Location: I live insideout
Posts: 131
Reputation: 43
Thumbs up Re: [PHP/MySQL] Powerup Stats - Player stats signature generator

Very impressive, sadly I won't use this as I use SQlite. Unless I'm missing something important that I should know
Firzendxiw is offline   Reply With Quote
Old 31/07/2012, 07:46 AM   #5
kelvin22
Big Clucker
 
kelvin22's Avatar
 
Join Date: Apr 2011
Location: Bathroom!
Posts: 91
Reputation: 19
Default Re: [PHP/MySQL] Powerup Stats - Player stats signature generator

@Firzendxiw

I never used SQlite as I heared it is slow but I will try to make a SQlite version aswell, anyway thanks.
__________________


kelvin22 is offline   Reply With Quote
Old 31/07/2012, 09:35 AM   #6
ca2k
Huge Clucker
 
ca2k's Avatar
 
Join Date: Sep 2010
Posts: 329
Reputation: 106
Default Re: [PHP/MySQL] Powerup Stats - Player stats signature generator

Credits should go here: http://forum.sa-mp.com/showthread.php?t=301435 or maybe even further into the history of 'dynamic signatures'. I don't understand why people wont add new stuff instead posting the same code in different structures...
__________________

pls Stop SprEAding eYe CanCer
ca2k is offline   Reply With Quote
Old 31/07/2012, 09:36 AM   #7
TheArcher
High-roller
 
TheArcher's Avatar
 
Join Date: Dec 2009
Location: Home
Posts: 2,334
Reputation: 251
Default Re: [PHP/MySQL] Powerup Stats - Player stats signature generator

Can you upload more screens somewhere else? I don't see it. Good job & thanks in advance.
__________________
TheArcher is offline   Reply With Quote
Old 31/07/2012, 02:20 PM   #8
Djole1337
Gangsta
 
Join Date: Apr 2012
Posts: 873
Reputation: 303
Default Re: [PHP/MySQL] Powerup Stats - Player stats signature generator

Can you show me the difference?

http://forum.sa-mp.com/showthread.php?t=301435
Djole1337 is offline   Reply With Quote
Old 31/07/2012, 03:09 PM   #9
kelvin22
Big Clucker
 
kelvin22's Avatar
 
Join Date: Apr 2011
Location: Bathroom!
Posts: 91
Reputation: 19
Default Re: [PHP/MySQL] Powerup Stats - Player stats signature generator

@TheArcher

There you go @ http://imgur.com/J4Arp

@Haters

Yes I can show you the difference

1. Config file,
2. Another way for printing image:
PHP Code:
ob_start();
imagepng($myImage);
printf('<img src="data:image/png;base64,%s"/>'
base64_encode(ob_get_clean()));
imagedestroy($myImage); 
3. Another way of connection to MySQL
4. Another way of geting results from database:
Mine:
PHP Code:
$query="SELECT * FROM users WHERE Username='$player_name' LIMIT 1"
His:
PHP Code:
$query="SELECT * FROM users WHERE Playername='$player_name'"
5. And many stuff which are different
__________________


kelvin22 is offline   Reply With Quote
Old 31/07/2012, 04:15 PM   #10
SomebodyAndMe
Huge Clucker
 
SomebodyAndMe's Avatar
 
Join Date: Feb 2010
Location: 52.511938,6.092434 find it.
Posts: 471
Reputation: 21
Default Re: [PHP/MySQL] Powerup Stats - Player stats signature generator

You just separated the code on that tutorial into different files, included them, claim it's WAY more different then the other. Good job!

-.-
SomebodyAndMe is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tool/Web/Other] PHP SA:MP Sign Generator - Showing the player stats, anytime, anywhere! [gmR]BarMaN Tools and Files 67 01/08/2015 04:51 AM
Where do i find working samp server stats signature? wumpyc Server Support 4 10/09/2011 09:20 AM
Server Stats in signature? lsrgta Server Support 3 18/11/2010 04:46 PM
Want Signature Stats? Capop Everything and Nothing 10 19/10/2009 10:40 PM


All times are GMT. The time now is 06:31 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.