voogru wrote:
Put something like this in ClientPutInServer.
int rate =
atoi(g_engfuncs.pfnInfoKeyValue(g_engfuncs.pfnGetInfoKeyBuffer(PLAYER_EDICT_
T),"rate"));
However, if they change it while connected you might want to do something so
it updates.
Hi,
Thanks for that, didn't realise it was so straight forward, however, I
am trying to get "rate","cl_cmdrate" and "cl_updaterate" values when a
person connects with the following code;
int rate = atoi(g_engfuncs.pfnInfoKeyValue(
g_engfuncs.pfnGetInfoKeyBuffer(pEntity), "rate"));
int cl_cmdrate = atoi(g_engfuncs.pfnInfoKeyValue(
g_engfuncs.pfnGetInfoKeyBuffer(pEntity), "cl_cmdrate"));
int cl_updaterate = atoi(g_engfuncs.pfnInfoKeyValue(
g_engfuncs.pfnGetInfoKeyBuffer(pEntity), "cl_updaterate"));
This is only returning values for "rate" and "cl_updaterate".
"cl_cmdrate" is always "0",
Any further help would be appreciated,
Thanks,
Matt.
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders