Szerző Téma: FpS  (Megtekintve 908 alkalommal)

FpS
« Dátum: 2016. Február 20. - 14:33:01 »
0 Show voters
Hy. Valaki tudna adni egy FPS-Textdrawot? Előreis köszönöm!

FpS
« Válasz #1 Dátum: 2016. Február 20. - 14:53:03 »
0 Show voters
new Text:FPS[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
    FPS[playerid] = TextDrawCreate(240.0, 580.0, \"Your FPS: Loading\");
   
    TextDrawShowForPlayer(playerid, FPS[playerid]);
    return 1;
}
public OnPlayerUpdate(playerid)
{
new string[128]
format(string, sizeof(string), \"Your FPS: %d\", GetPlayerFPS(playerid));
TextDrawSetString(FPS[playerid], string);
return 1;
}

FpS
« Válasz #2 Dátum: 2016. Február 20. - 15:04:09 »
0 Show voters
Ehez nem kell stock vagy valami? mert error. GetPlayerFPS ez!

Dupla hozzászólás automatikusan összefûzve. ( 2016. Február 20. - 15:05:15 )

C:\\Users\\Lenovo\\Desktop\\PC\\gamemodes\\mlp.pwn(372) : error 001: expected token: \";\", but found \"-identifier-\"
C:\\Users\\Lenovo\\Desktop\\PC\\gamemodes\\mlp.pwn(372) : error 017: undefined symbol \"GetPlayerFPS\"

ᗩωєѕσмє

  • Vendég
FpS
« Válasz #3 Dátum: 2016. Február 20. - 16:00:05 »
0 Show voters
http://pastebin.com/EBuxfYfs
Új textdrawot létrehozni majd ne felejts el.

FpS
« Válasz #4 Dátum: 2016. Február 20. - 18:10:21 »
0 Show voters
Nem indul a szerverem!!  :wall: :wall: :wall: :nono:

Dupla hozzászólás automatikusan összefûzve. ( 2016. Február 20. - 18:14:35 )

Javítva!
« Utoljára szerkesztve: 2016. Február 20. - 18:14:35 írta KingstonX »

ᗩωєѕσмє

  • Vendég
FpS
« Válasz #5 Dátum: 2016. Február 20. - 18:17:25 »
0 Show voters
kipróbáltad? működik?

FpS
« Válasz #6 Dátum: 2016. Február 20. - 18:19:55 »
0 Show voters
Elakadtam. megvan a(z) fps-nek a td kordinátája hogy rakjam be? mertígy elileg nem adja ki.

Dupla hozzászólás automatikusan összefûzve. ( [time]2016. február 20. 18:30:34[/time] )

így nagyon nem adja!
 
#include <a_samp>
#define FILTERSCRIPT
#define GetPlayerFPS(%1) g_pFPS[%1]
new
    g_pFPS[MAX_PLAYERS],
    g_pDrunkLevelLast[MAX_PLAYERS],
    string[128],
    Text:FPS;
   // Text:FPS[MAX_PLAYERS];
public OnPlayerConnect(playerid) {
    FPS = TextDrawCreate(240.0, 580.0, \"FPS: Loading\");
    TextDrawShowForPlayer(playerid, FPS);
    return 1;
}
public OnPlayerUpdate(playerid) {
    new drunknew = GetPlayerDrunkLevel(playerid);
    if(drunknew < 100) SetPlayerDrunkLevel(playerid, 2000);
    else {
        if(g_pDrunkLevelLast[playerid] != drunknew) {
            new wfps = g_pDrunkLevelLast[playerid] - drunknew;
            if(0 <= wfps <= 200) g_pFPS[playerid] = wfps;
            g_pDrunkLevelLast[playerid] = drunknew;
        }
    }
    format(string, sizeof(string), \"FPS: %d\", GetPlayerFPS(playerid));
    TextDrawSetString(FPS, string);
    return 1;
}
public OnGameModeInit()
{
FPS = TextDrawCreate(515.000000, 418.000000, \"FPS_xd\");
TextDrawBackgroundColor(FPS, 255);
TextDrawFont(FPS, 1);
TextDrawLetterSize(FPS, 0.259999, 1.200000);
TextDrawColor(FPS, 0xd6d4d2AA);
TextDrawSetOutline(FPS, 0);
TextDrawSetProportional(FPS, 1);
TextDrawSetShadow(FPS, 1);
return 1;
}
« Utoljára szerkesztve: 2016. Február 20. - 18:55:30 írta KingstonX »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal