ich versuche gerade ein Tacho zu scripten
aber er zeigt den textdraw nicht an
#include <a_samp>
// On top of script:
new Text:TXT[MAX_PLAYERS];
forward FunC();
public OnFilterScriptInit()
{
SetTimer("FunC", 500, 1);
// In OnGameModeInit
for(new i=0; i<MAX_PLAYERS; i++)
{
TXT[i] = TextDrawCreate(500 ,439 , "Km/h:---");
TextDrawFont(TXT[i] , 1);
TextDrawLetterSize(TXT[i] , 0.9, 6.3);
TextDrawColor(TXT[i] , 0x000000FF);
TextDrawSetOutline(TXT[i] , false);
TextDrawSetProportional(TXT[i] , true);
TextDrawSetShadow(TXT[i] , 1);
}
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public FunC()
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate==PLAYER_STATE_DRIVER)
{
TextDrawShowForPlayer(playerid, TXT[playerid]);
}
if(newstate==PLAYER_STATE_ONFOOT)
{
TextDrawHideForPlayer(playerid, TXT[playerid]);
}
return 1;
}
warum geht es nicht bekomme auch keinne eroors/warnings
MFG Piet