Szerző Téma: pontok helyett pénzt mutasson...  (Megtekintve 1081 alkalommal)

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
pontok helyett pénzt mutasson...
« Dátum: 2011. Április 10. - 15:38:59 »
0 Show voters
Hy all!
Amikor lenyomjuk a tabot a játékban akor megjelenik egy ablak amiben az alábbiak vannak: PlayerID, Név, Pontok Ping.
Én azt szeretném megoldani , hogy a pontok helyett pénzt mutasson!
Ezt hogy lehet megoldani?
Üdv:Flash

double out

  • Vendég
pontok helyett pénzt mutasson...
« Válasz #1 Dátum: 2011. Április 10. - 15:44:51 »
0 Show voters
OnPlayerUpdateAlá
 
SetPlayerScore(playerid,GetPlayerMoney(playerid))

Nem elérhető NagyZ

pontok helyett pénzt mutasson...
« Válasz #2 Dátum: 2011. Április 10. - 16:08:03 »
0 Show voters
Ha jól tudom ez az alap lvdm módba is benne van
Azt hiszem ez az :D
 
forward MoneyGrubScoreUpdate();
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);
   }
}
}
}

double out

  • Vendég
pontok helyett pénzt mutasson...
« Válasz #3 Dátum: 2011. Április 10. - 16:11:23 »
0 Show voters
Idézetet írta: NagyZ date=1302444483\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"7454\" data-ipsquote-contentclass=\"forums_Topic
Ha jól tudom ez az alap lvdm módba is benne van
Azt hiszem ez az :D
 
forward MoneyGrubScoreUpdate();
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);
   }
}
}
}

 

Egy sorral meglehet oldani..

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
pontok helyett pénzt mutasson...
« Válasz #4 Dátum: 2011. Április 10. - 21:44:19 »
0 Show voters
Tényleg 1 sorral meglehet oldani! Azt még meglehet csinálni, hogy score helyett Money-t írjon?

double out

  • Vendég
pontok helyett pénzt mutasson...
« Válasz #5 Dátum: 2011. Április 10. - 23:43:20 »
0 Show voters
Azt nem lehet átírni.

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
pontok helyett pénzt mutasson...
« Válasz #6 Dátum: 2011. Április 11. - 14:02:18 »
0 Show voters
oks! köszi! mûködik!
Zárok.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal