02.10.2012, 17:56
hmm i fixed the money score now score dont save at all when i leave and join the server
(i removed the lvdm feature for money instead of real score)
from these lines
i deleted this :
(i removed the lvdm feature for money instead of real score)
from these lines
Код:
public MoneyGrubScoreUpdate()
{
new CashScore;
new name[MAX_PLAYER_NAME];
//new string[256];
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, name, sizeof(name));
CashScore = GetPlayerMoney(i);
SetPlayerScore(i, CashScore);
if (CashScore > CashScoreOld)
{
CashScoreOld = CashScore;
//format(string, sizeof(string), "$$$ %s is now in the lead", name);
//SendClientMessageToAll(COLOR_YELLOW, string);
}
}
}
Код:
CashScore = GetPlayerMoney(i); SetPlayerScore(i, CashScore);


