Cuban_Dota
04-08-2015, 13:50
Hi i am using GetEntDataString and GetEntPropString for retrieving the m_iszPlayerNames property from the CDOTA_PlayerResource. The code is:
new pr = GetPlayerResourceEntity();
new String: name[32];
new name_offset = FindSendPropInfo("CDOTA_PlayerResource", "m_iszPlayerNames");
GetEntDataString(pr, name_offset, name, sizeof(name));
the problem is the string is empty and it shouldnt be.
In the case of GetEntPropString:
GetEntPropString(pr, Prop_Send, "m_iszPlayerNames", name, sizeof(name), 0);
it gives an error that says that m_iszPlayerNames is not a string and it is a string.
Any ideas??
new pr = GetPlayerResourceEntity();
new String: name[32];
new name_offset = FindSendPropInfo("CDOTA_PlayerResource", "m_iszPlayerNames");
GetEntDataString(pr, name_offset, name, sizeof(name));
the problem is the string is empty and it shouldnt be.
In the case of GetEntPropString:
GetEntPropString(pr, Prop_Send, "m_iszPlayerNames", name, sizeof(name), 0);
it gives an error that says that m_iszPlayerNames is not a string and it is a string.
Any ideas??