29.01.2012, 18:30
Hola Amigos Tengo Un Problema Grave ! =S El Score De Mi Sv esta bugeado cuando alguien entra de una se le pone el Score en 50000 :$ y cada vez le da mas y mas =( ayuda plz que serA?
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);
}
}
}
}
forward MoneyGrubScoreUpdate();
SetTimer("MoneyGrubScoreUpdate", 1000, 1);