Huhu
Ich habe das Probleml, dass bei meinem Tacho nichts passiert ausser geprintet wird.
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate==PLAYER_STATE_DRIVER){
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 481 || GetVehicleModel(GetPlayerVehicleID(playerid)) != 509 || GetVehicleModel(GetPlayerVehicleID(playerid)) != 510){
Player[playerid][_tachotimer] = SetTimerEx("TachoTimer",500,true,"i",playerid);
new string[40];
format(string,40,"Fahrzeug: %s",Fahrzeugname[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
PlayerTextDrawSetString(playerid,Tacho[4],string);
for(new i=0;i<10;i++)PlayerTextDrawShow(playerid,Tacho[i]);
}
}else if(oldstate==PLAYER_STATE_DRIVER){
for(new i=0;i<10;i++)PlayerTextDrawHide(playerid,Tacho[i]);
KillTimer(Player[playerid][_tachotimer]);
}
return 1;
}
Tachotimer:
public TachoTimer(playerid){
printf("%s",Player[playerid][name]);
new string[128];
format(string,128,"Fahrzeug: %s",Fahrzeugname[GetPlayerVehicleID(playerid)-400]);
SendClientMessageToAll(red, string);
SendClientMessage(playerid,red,"t");
format(string,128,"%s",Player[playerid][name]);
SendClientMessageToAll(red, string);
SendClientMessageToAll(red, "TTTT");
}
Es kommt ingame nichts an, mein Name wird aber geprintet...
Hoffe jmd. findet das Problem
-Flashboot