Hallo,
ich habe das problem das mein selfmade tacho nicht erscheint...
hier die ganzen sachen die mit tacho zu tun haben
public Tacho(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
new str[128],a = GetPlayerVehicleID(playerid);
if(IstEinAuto(playerid) || IstEinMotorrad(playerid))
{
format(str,sizeof str,"~n~~n~~n~~n~~g~Elektro: ~w~%d ~g~Km/h: ~w~%d ~n~~g~Name: ~w~%s",Elektro[a],GetSpeed(playerid,true),CarName[a-400]);
}
if(IstEinFlugzeugOderHubschrauber(playerid))
{
format(str,sizeof str,"~n~~n~~n~~n~~g~Kerosin: ~w~%d ~g~Km/h: ~w~%d ~n~~g~Name: ~w~%s",Kerosin[a],GetSpeed(playerid,true),CarName[a-400]);
}
if(IstEinBoot(playerid))
{
format(str,sizeof str,"~n~~n~~n~~n~~g~Benzin: ~w~%d ~g~Km/h: ~w~%d ~n~~g~Name: ~w~%s",Benzin[a],GetSpeed(playerid,true),CarName[a-400]);
}
if(IstEinLKW(playerid))
{
format(str,sizeof str,"~n~~n~~n~~n~~g~Diesel: ~w~%d ~g~Km/h: ~w~%d ~n~~g~Name: ~w~%s",Diesel[a],GetSpeed(playerid,true),CarName[a-400]);
}
if(IstEinFahrrad(playerid))
{
format(str,sizeof str,"~n~~n~~n~~n~~g~Km/h: ~w~%d ~g~Name: ~w~%s",GetSpeed(playerid,true),CarName[a-400]);
}
GameTextForPlayer(playerid,str,4000,3);
}
return 1;
}
tacho = SetTimerEx("Tacho",1000,1,"u",playerid); // das ist nur in onplayerentervehicle
DeaktiviereTimer(tacho); // in OnPlayerExitVehicle
danke schonmal im voraus
//edit 1 fehler gesehen mit GameTextForPlayer aber kommt immernoch nicht