View Single Post
stoneyschillhouse
Senior Member
Join Date: Nov 2012
Old 09-19-2015 , 14:31   Re: Players duplicates again after update
Reply With Quote #10

thx

Now the Sqlsyntax doesnt put out any errors but the problem is still the same

the converting isnt correct

the resulting IDv2 wich is now show up in hlstats isnt the right one

its a ID wich does not exists.

The .pl section wich he means I think its line 1050 - 1064


PHP Code:
#
# array getPlayerInfo (string player, string $ipAddr)
#
# Get a player's name, uid, wonid and team from "Name<uid><wonid><team>".
#

sub getPlayerInfo
{
    
my ($player$create_player$ipAddr) = @_;

    if (
$player =~ /^(.*?)<(\d+)><([^<>]*)><([^<>]*)>(?:<([^<>]*)>)?.*$/) {
        
my $name        = $1;
        
my $userid        = $2;
        
my $uniqueid    = $3;
        
my $team        = $4;
        
my $role        = $5;
        
my $bot            0;
        
my $haveplayer  0;
        
        
$plainuniqueid $uniqueid;
        
$uniqueid =~ /^\[U:1:(\d+)\]/;
        
$uniqueid = $1
        
        if ((
$uniqueid eq "Console") && ($team eq "Console")) {
          return 
0;
        }
        if (
$g_servers{$s_addr}->{play_game} == L4D()) {
        
#for l4d, create meta player object for e 
???
__________________
SRY FOR MY BAD ENGLISH
I'm german
stoneyschillhouse is offline