Szerző Téma: GetPlayerScore(playerid)  (Megtekintve 760 alkalommal)

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
GetPlayerScore(playerid)
« Dátum: 2012. Február 11. - 14:56:24 »
0 Show voters
GetPlayerScore funkció:
         Lekérjük egy adot játékos pontszámát.
Paraméterek:
 
(playerid)

 
playerid Az adott játékos azonosítója.
Visszatérés: A játékos pontszáma.
Példa a helyes használatra:
 
public OnPlayerCommandText(playerid,text[])
{
    if(!strcmp(cmdtext,\"/pontok\",true))
    {
        new string[128];
        format(string, sizeof(string), \"Pontok: %i\",GetPlayerScore(playerid));
        SendClientMessage(playerid, COLOR_ORANGE, string);
        return 1;
    }
    return 0;
}
« Utoljára szerkesztve: 2012. Február 11. - 15:28:46 írta Benceee »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal