Raised This Month: $ Target: $400
 0% 

[REQ] Send information from the plugin (pawn) to the web (php) through mysql


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zhulo
Senior Member
Join Date: Jun 2010
Location: Slovakia
Old 07-14-2012 , 12:29   [REQ] Send information from the plugin (pawn) to the web (php) through mysql
Reply With Quote #1

Hello. I wanted to find some tutorials and informations about this but I did not find anything understandable. So I decided to ask for help. I wanna make a server status for my website, which will get informations right from the server through the mysql (or some better connection server/web if u know). I can make the pawn code but i dont know how to connect it to the web.

Here are some things which I wanna connect (pawn)

Connected players count and max players:

PHP Code:
public plugin_init()
{
    
g_maxplayers get_maxplayers()
}

getconnected()
{
    static 
iConnectedid
    iConnected 
0
    
    
for (id 1id <= g_maxplayersid++)
    {
        if (
is_user_connected(id))            
            
iConnected++
    }
    
    return 
iConnected;

Current map name:

PHP Code:
    new map[32]
    
get_mapname(map31
Of course there will be much more informations, this is just an example.

So, when I have the pawn code and the .amxx plugin, now I need to take this informations right to the web (php).

The table should look like this:

[IMG]http://img338.**************/img338/5376/statuuus.jpg[/IMG]


Can someone help me to make it?
zhulo is offline
Send a message via ICQ to zhulo Send a message via Skype™ to zhulo
 



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

Forum Jump


All times are GMT -4. The time now is 15:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode