SetRank problem
Locked
FLHook Plugin Version
-
Hello,
I have a problem with the “SetRank”, this works :
int iSetRank=0; void UserCmd_SetRank(uint iClientID, const wstring &wscParam) { iSetRank ++; pub::Player::SetRank(iClientID, iSetRank); pub::Reputation::SetRank(iClientID, ToFloat(IntToStr(iSetRank))); }
But “Reputation:: SetRank” not working anymore after leaving the game.
The solution restart the server…What is the problem?
-
The Problem i think is the iClientID. Without iClientID, the player data will be immeasurable. And iClientID only available when player online.
You may need to try other way to do it, like to change user save game profile directly.
-
It’s because it’s not a client id.
int repid; pub::Player::GetRep( iClientID, repid ); pub::Reputation::SetRank( repid, (float)iSetRank );
-
Ok, it works.
8 Aug 2013, 17:05
4/4
9 Aug 2013, 08:37