Szerző Téma: Textdraw ölések halálok help!  (Megtekintve 859 alkalommal)

Textdraw ölések halálok help!
« Dátum: 2012. Május 29. - 19:45:49 »
0 Show voters

#include <a_samp>
new Text:Box;
new Text:Texts;
#define id playerid
enum pInfo
{
Kills,
Deaths
};
new PlayerInfo[MAX_PLAYERS][pInfo];
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[id][Deaths]++;
PlayerInfo[killerid][Kills]++;
}
public OnFilterScriptInit()
{
        Box = TextDrawCreate(-2.000000, 433.000000, \"__\");
        TextDrawBackgroundColor(Box, 255);
        TextDrawFont(Box, 1);
        TextDrawLetterSize(Box, 0.500000, 1.500000);
        TextDrawColor(Box, -1);
        TextDrawSetOutline(Box, 0);
        TextDrawSetProportional(Box, 1);
        TextDrawSetShadow(Box, 1);
        TextDrawUseBox(Box, 1);
        TextDrawBoxColor(Box, 849);
        TextDrawTextSize(Box, 640.000000, 0.000000);
        Texts = TextDrawCreate(4.000000, 434.000000, \"Ölések: %d | Halálok: %d\",PlayerInfo[id][Kills],PlayerInfo[id][Deaths]);
        TextDrawBackgroundColor(Texts, 255);
        TextDrawFont(Texts, 1);
        TextDrawLetterSize(Texts, 0.270000, 1.100000);
        TextDrawColor(Texts, -1);
        TextDrawSetOutline(Texts, 1);
        TextDrawSetProportional(Texts, 1);
        return 1;
}
public OnFilterScriptExit()
{
        TextDrawHideForAll(Box);
        TextDrawDestroy(Box);
        TextDrawHideForAll(Texts);
        TextDrawDestroy(Texts);
        return 1;
}
public OnPlayerConnect(playerid)
{
PlayerInfo[id][Kills]=0;
PlayerInfo[id][Deaths]=0;
        TextDrawShowForPlayer(id, Box);
        TextDrawShowForPlayer(id, Texts);
        return 1;
}

 
Nemtudom mit tegyek, mert a public OnFilterScriptInit() nem észleli a playerid-t!

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Textdraw ölések halálok help!
« Válasz #1 Dátum: 2012. Május 29. - 19:48:04 »
0 Show voters
Ha hasznalsz Dinit az INC milyert nincsen betoltve?
#include <Dini>

Textdraw ölések halálok help!
« Válasz #2 Dátum: 2012. Május 29. - 20:13:50 »
0 Show voters
öööö....Miért ehez kell a Dini.inc??(Bocs kezdõ vok, csak próbálkozok.) Egyébként Dini.inc el ezt irta ki:
error 017: undefined symbol \"playerid\"
 warning 203: symbol is never used: \"ret_memcpy\"
 warning 203: symbol is never used: \"strtok\"

Nem elérhető JBauer

  • 1407
    • Profil megtekintése
Textdraw ölések halálok help!
« Válasz #3 Dátum: 2012. Május 29. - 21:04:47 »
0 Show voters
#pragma unused strtok
#pragma unused ret_memcpy

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
Textdraw ölések halálok help!
« Válasz #4 Dátum: 2012. Május 29. - 21:21:18 »
0 Show voters
És szerintem valahol zárási hiba lesz, vagy hasonló (a playerid miatt)

Textdraw ölések halálok help!
« Válasz #5 Dátum: 2012. Május 30. - 07:19:46 »
0 Show voters
Nekem sehogy sem mûködik:S

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal