playerinfo->IsPlayer() crash server on ClientActive
Plugin is crashing server on ClientActive Callback
when try check for playerinfo->IsPlayer(); i also tried playerinfo->GetName(); and crash too, playerinfo should be invalid but the variable its not null Console Logs: Code:
Client "sn4k3" connected (192.168.1.70:27005). Code:
IPlayerInfo *LIB_ENTITY_CLASS::GetPlayerinfoFromEntity(edict_t *pEntity) thanks |
Re: playerinfo->IsPlayer() crash server on ClientActive
What SDK are you using? I believe the IPlayerInfo class has changed. If you are using the stock SDK from VALVe, that might explain it.
|
Re: playerinfo->IsPlayer() crash server on ClientActive
Quote:
it work in all others cases, like UserMessages get name, get steamid, etc (Out of ClientActive) its strange |
Re: playerinfo->IsPlayer() crash server on ClientActive
If you read the SDK, you'll see that PlayerInfo is instantiated with the entity, and player entities are not created until PutInServer.
|
Re: playerinfo->IsPlayer() crash server on ClientActive
Quote:
thanks |
Re: playerinfo->IsPlayer() crash server on ClientActive
Problem solved, my fault
i was inputing index (int from my class, after set to 0), when argument its playerindex so i used argument playerindex to all lines less on the GetPlayerInfo, so all checks say playerindex is valid, but when i use index to getplayerinfo it crash because its 0 so ClientActive is fine and work well with IPlayerInfo |
Re: playerinfo->IsPlayer() crash server on ClientActive
Yes, ClientActive occurs after PutInServer.
|
All times are GMT -4. The time now is 03:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.