so then...

if ((engine->GetPlayerNetworkIDString() == NULL) || 
(strcmp(engine->GetPlayerNetworkIDString(), "BOT") == 0)) {
    itsabot = true;
}

Sounds like an engine.dll regression though to me that it would ever return 
NULL.  Valve should fix that I'd hope.

At 2006/07/02 03:25 AM, Ronny Schedel wrote:
>I tried with engine->GetPlayerNetworkIDString(), but the returned string now
>is "(null)" instead of BOT. I do this in the ClientActive() event, the
>server shows the correct line
>
>L 07/02/2006 - 10:22:53: "fakeclient<2><BOT><>" connected, address "none"
>
>before. So at this stage the network id is set correctly, but the engine
>returns the wrong string to my server plugin. WTF?
>
>Regards
>Ronny
>
>
>>Not now maybe, but it might break in the future, and there is no
>>measurable performance benefit.
>>
>>At 2006/07/01 05:37 PM, Aaron Schiff wrote:
>>>--
>>>[ Picked text/plain from multipart/alternative ]
>>>The ID is never smaller than BOT
>>>
>>>--
>>>ts2do
>>>--
>>>
>>>_______________________________________________
>>>To unsubscribe, edit your list preferences, or view the list archives,
>>>please visit:
>>>http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>_______________________________________________
>>To unsubscribe, edit your list preferences, or view the list archives,
>>please visit:
>>http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>_______________________________________________
>To unsubscribe, edit your list preferences, or view the list archives, please 
>visit:
>http://list.valvesoftware.com/mailman/listinfo/hlcoders

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to