Jump to content

Search the Community

Showing results for tags 'online'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Russian section
    • Новости и объявления
    • Пиратия: Документация
    • Пиратия: Релизы
    • Пиратия: Разработка
    • Пиратия: Web
    • Пиратия: Помощь
    • Программирование
    • Совместные проекты / набор команды
    • Доска объявлений
    • Offtop
  • English Section
    • News & Announcements
    • Guides
    • Releases
    • Development
    • Web
    • Questions & Help
    • Programming
    • Shared Projects / Team search
    • Paid services & Requests
    • Offtopic
  • Server Advertisements
    • Russian servers
    • English servers

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 2 results

  1. Hello again guys, I created this video with the idea of promoteing again the tales of pirates private server community. Here you can see my web service related post: Server Files/Game/My Webserver consumers: https://drive.google.com/open?id=1A4O161L36d0qJx2AnCksm5crg0Nktdt5 Microsoft SQL SERVER 2014/2017 Installation Guides i used: Good Lucks guys
  2. V3ct0r

    [PHP] Online HD & GM

    With this script you can show to players who is online from HD and GM. <?php $db_host = ''; $db_user = ''; $db_pass = ''; $db_name = 'GameDB'; $hd_level = 30; if (mssql_connect($db_host, $db_user, $db_pass) == false) { die ('<b>Error: </b> Can not connect to MSSQL server!'); } if (mssql_select_db($db_name) == false) { die ('<b>Error: </b> Can not select game database!'); } $sql = 'SELECT c.cha_name, a.gm FROM character AS c LEFT JOIN account AS a ON (c.act_id = a.act_id) WHERE c.mem_addr > 0 AND a.gm > 0'; $query = mssql_query($sql); if ($query == false) { die ('<b>Error: </b> Can not get list of online HD and GM!'); } $stuff = array(); while ($cha = mssql_fetch_object($query)) { $stuff[] = $cha; } mssql_close(); ?> <html> <head> <title>Список HD и GM в игре</title> </head> <body> <h1>Список HD и GM в игре</h1> <?php $stuff_online = ''; $n = count($stuff); if ($n > 0) { for ($i = 0; $i < $n; $i++) { if ($stuff[$i]->gm > $hd_level) { $stuff_online .= '[GM] ' . $stuff[$i]->cha_name; } else { $stuff_online .= '[HD] ' . $stuff[$i]->cha_name; } if ($i != ($n - 1)) { $stuff_online .= ', '; } else { $stuff_online .= '.'; } } } else { $stuff_online = 'All HD and GM are offline.'; } print $stuff_online; ?> </body> </html>
×