SA-MP Forums Archive
[Tool/Web/Other] [PHP/MySQL] Powerup Stats - Player stats signature generator - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] [PHP/MySQL] Powerup Stats - Player stats signature generator (/showthread.php?tid=364547)



[PHP/MySQL] Powerup Stats - Player stats signature generator - kelvin22 - 31.07.2012

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

© Kelvin Cobanaj 2012



Re: [PHP/MySQL] Powerup Stats - Player stats signature generator - FireCat - 31.07.2012

Nice


Re: [PHP/MySQL] Powerup Stats - Player stats signature generator - kelvin22 - 31.07.2012

@FireCat

Thanks dude.


Re: [PHP/MySQL] Powerup Stats - Player stats signature generator - Firzendxiw - 31.07.2012

Very impressive, sadly I won't use this as I use SQlite. Unless I'm missing something important that I should know


Re: [PHP/MySQL] Powerup Stats - Player stats signature generator - kelvin22 - 31.07.2012

@Firzendxiw

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


Re: [PHP/MySQL] Powerup Stats - Player stats signature generator - ca2k - 31.07.2012

Credits should go here: https://sampforum.blast.hk/showthread.php?tid=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...


Re: [PHP/MySQL] Powerup Stats - Player stats signature generator - TheArcher - 31.07.2012

Can you upload more screens somewhere else? I don't see it. Good job & thanks in advance.


Re: [PHP/MySQL] Powerup Stats - Player stats signature generator - Djole1337 - 31.07.2012

Can you show me the difference?

https://sampforum.blast.hk/showthread.php?tid=301435


Re: [PHP/MySQL] Powerup Stats - Player stats signature generator - kelvin22 - 31.07.2012

@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


Re: [PHP/MySQL] Powerup Stats - Player stats signature generator - SomebodyAndMe - 31.07.2012

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

-.-