Beiträge von LikesToreno

    Heyho mein pawn compiler hört nicht auf zu compilen also es flackert nur Der strich |


    das geht so 20minuten und es passiert immer noch nix kann mir jemand helfen das ist unnormal ich wollte einen tacho einbauen..


    und nichtmal errors kann er anzeigen..


    oben bei new



    new PlayerText:TT_0[MAX_PLAYERS];
    new PlayerText:TT_1[MAX_PLAYERS];
    new PlayerText:TT_2[MAX_PLAYERS];
    new PlayerText:TT_3[MAX_PLAYERS];
    new PlayerText:MT[MAX_PLAYERS][3];



    onplayerconnect




    // Textdraws
    TT_0[playerid] = CreatePlayerTextDraw(playerid,500.000000, 403.000000, "100km/h");
    PlayerTextDrawBackgroundColor(playerid,TT_0[playerid], 255);
    PlayerTextDrawFont(playerid,TT_0[playerid], 1);
    PlayerTextDrawLetterSize(playerid,TT_0[playerid], 0.239999, 1.399999);
    PlayerTextDrawColor(playerid,TT_0[playerid], -1);
    PlayerTextDrawSetOutline(playerid,TT_0[playerid], 0);
    PlayerTextDrawSetProportional(playerid,TT_0[playerid], 1);
    PlayerTextDrawSetShadow(playerid,TT_0[playerid], 0);


    TT_3[playerid] = CreatePlayerTextDraw(playerid,596.000000, 404.000000, "1000km");
    PlayerTextDrawBackgroundColor(playerid,TT_3[playerid], 255);
    PlayerTextDrawFont(playerid,TT_3[playerid], 1);
    PlayerTextDrawLetterSize(playerid,TT_3[playerid], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,TT_3[playerid], -1);
    PlayerTextDrawSetOutline(playerid,TT_3[playerid], 0);
    PlayerTextDrawSetProportional(playerid,TT_3[playerid], 1);
    PlayerTextDrawSetShadow(playerid,TT_3[playerid], 0);


    MT[playerid][0] = CreatePlayerTextDraw(playerid,141.000000, 436.000000, "__");
    PlayerTextDrawBackgroundColor(playerid,MT[playerid][0], 255);
    PlayerTextDrawFont(playerid,MT[playerid][0], 1);
    PlayerTextDrawLetterSize(playerid,MT[playerid][0], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,MT[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid,MT[playerid][0], 0);
    PlayerTextDrawSetProportional(playerid,MT[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid,MT[playerid][0], 0);
    PlayerTextDrawShow(playerid,MT[playerid][0]);


    MT[playerid][1] = CreatePlayerTextDraw(playerid,300.000000, 436.000000, "__");
    PlayerTextDrawBackgroundColor(playerid,MT[playerid][1], 255);
    PlayerTextDrawFont(playerid,MT[playerid][1], 1);
    PlayerTextDrawLetterSize(playerid,MT[playerid][1], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,MT[playerid][1], -1);
    PlayerTextDrawSetOutline(playerid,MT[playerid][1], 0);
    PlayerTextDrawSetProportional(playerid,MT[playerid][1], 1);
    PlayerTextDrawSetShadow(playerid,MT[playerid][1], 0);
    PlayerTextDrawShow(playerid,MT[playerid][1]);


    MT[playerid][2] = CreatePlayerTextDraw(playerid,460.000000, 436.000000, "__");
    PlayerTextDrawBackgroundColor(playerid,MT[playerid][2], 255);
    PlayerTextDrawFont(playerid,MT[playerid][2], 1);
    PlayerTextDrawLetterSize(playerid,MT[playerid][2], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,MT[playerid][2], -1);
    PlayerTextDrawSetOutline(playerid,MT[playerid][2], 0);
    PlayerTextDrawSetProportional(playerid,MT[playerid][2], 1);
    PlayerTextDrawSetShadow(playerid,MT[playerid][2], 0);
    PlayerTextDrawShow(playerid,MT[playerid][2]);



    TT_1[playerid] = CreatePlayerTextDraw(playerid,595.000000, 419.000000, "100%");
    PlayerTextDrawAlignment(playerid,TT_1[playerid], 2);
    PlayerTextDrawBackgroundColor(playerid,TT_1[playerid], 255);
    PlayerTextDrawFont(playerid,TT_1[playerid], 1);
    PlayerTextDrawLetterSize(playerid,TT_1[playerid], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,TT_1[playerid], -1);
    PlayerTextDrawSetOutline(playerid,TT_1[playerid], 0);
    PlayerTextDrawSetProportional(playerid,TT_1[playerid], 1);
    PlayerTextDrawSetShadow(playerid,TT_1[playerid], 0);
    PlayerTextDrawUseBox(playerid,TT_1[playerid], 1);
    PlayerTextDrawBoxColor(playerid,TT_1[playerid], 6553855);
    PlayerTextDrawTextSize(playerid,TT_1[playerid], 3.000000, 80.000000);


    TT_2[playerid] = CreatePlayerTextDraw(playerid,500.000000, 419.000000, "Uranus");
    PlayerTextDrawBackgroundColor(playerid,TT_2[playerid], 255);
    PlayerTextDrawFont(playerid,TT_2[playerid], 1);
    PlayerTextDrawLetterSize(playerid,TT_2[playerid], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,TT_2[playerid], -1);
    PlayerTextDrawSetOutline(playerid,TT_2[playerid], 0);
    PlayerTextDrawSetProportional(playerid,TT_2[playerid], 1);
    PlayerTextDrawSetShadow(playerid,TT_2[playerid], 0);


    onplayerdisconnect


    PlayerTextDrawDestroy(playerid,MT[playerid][0]);
    PlayerTextDrawDestroy(playerid,MT[playerid][1]);
    PlayerTextDrawDestroy(playerid,MT[playerid][2]);
    PlayerTextDrawDestroy(playerid,TT_1[playerid]);
    PlayerTextDrawDestroy(playerid,TT_2[playerid]);
    PlayerTextDrawDestroy(playerid,TT_3[playerid]);


    Hier der newstate


    if(newstate==PLAYER_STATE_ONFOOT)
    {
    vehicleid=GetPVarInt(playerid,"lastvehicle");
    SetPVarInt(playerid,"verladen",0);
    if(tankt[playerid]>0)
    {
    tankt[playerid]=-1;
    }
    RemovePlayerAttachedObject(playerid,2);
    PlayerTextDrawHide(playerid,TT_0[playerid]);
    PlayerTextDrawHide(playerid,TT_1[playerid]);
    PlayerTextDrawHide(playerid,TT_2[playerid]);
    PlayerTextDrawHide(playerid,TT_3[playerid]);
    TextDrawHideForPlayer(playerid,Tankbox);
    TextDrawHideForPlayer(playerid,Tankbox2);
    StopAudioStreamForPlayer(playerid);
    SetPVarInt(playerid,"lastwechsel",0);
    SetPVarInt(playerid,"musswechselcheck",0);
    hattaxi[playerid]=0;
    /*if(GetPVarInt(playerid,"hatbizauto")==1)
    {
    for(new i=0; i<sizeof(BizAuto); i++)
    {
    if(BizAuto[i][delivered]!=0)continue;
    if(BizAuto[i][id_x]!=vehicleid)continue;
    SetVehicleToRespawn(BizAuto[i][id_x]);
    mysql_queryf("UPDATE ordercars SET delivering='0' WHERE id='%i'",BizAuto[i][d_id]);
    ErrorMsg(playerid,"Job fehlgeschlagen.");
    break;
    }
    SetPVarInt(playerid,"hatbizauto",0);
    }*/
    if(TransporterRobberID == playerid)
    {
    for(new h=0; h<sizeof(RobTransporter); h++){
    if(gLastCar[playerid] == RobTransporter[h]){
    DisablePlayerCheckpoint(playerid);
    TransporterRobberID = -1;
    CP[playerid] = 0;
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(gLastCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(gLastCar[playerid],VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, " Das Ausrauben des Banktransporters ist fehlgeschlagen");
    format(string, sizeof(string), "Funk: %s ist beim versuch den Geldtransporter zu Stehlen gescheitert.!", playername);
    SendCopMessage(COLOR_RADIO,string);
    }}}
    if(PlayerInfo[playerid][pJob] == 17)
    {
    for(new h=0; h<sizeof(StatdreiniegerAuto); h++){
    if(gLastCar[playerid] == StatdreiniegerAuto[h]){
    if(CP[playerid] >= 74 && CP[playerid] <= 90){
    DisablePlayerCheckpoint(playerid);
    CP[playerid] = 0;
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(gLastCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(gLastCar[playerid],VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, " Du hast die Reiniegung abgebrochen und bekommst daher kein Geld !");
    }}}}
    new VEH = gLastCar[playerid];
    if(Locked[VEH] == 1){
    Locked[VEH] = 0;
    ForAllPlayers(i){SetVehicleParamsForPlayer(VEH,i, 0, 0);}
    }
    if(Spectating[playerid] != -1 || GangAutoSpectating[playerid] != -1)
    {
    Spectating[playerid] = -1;
    GangAutoSpectating[playerid] = -1;
    }
    }


    das hier bei


    public Updating


    vID=GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {


    new Float:geschwindigkeit=ErmittleGeschwindigkeit(playerid,true);
    if(geschwindigkeit>300)
    {
    format(string,sizeof(string),"[ACS]: Gegen %s liegt ein Speedhack Verdacht vor (mit Fahrzeug).",SpielerName(playerid));
    foreach(new i : Player)
    {
    if(!IsPlayerConnected(i))continue;
    if(!IsPlayerAnAdmin(i,2))continue;
    SendClientMessage(i,0xB90000FF,string);
    }
    }
    format(speed[playerid],20,"%.0f km/h",geschwindigkeit);
    PlayerTextDrawSetString(playerid,TT_0[playerid],speed[playerid]);
    format(string,sizeof(string),"%.1fkm",distanz[vID]);
    PlayerTextDrawSetString(playerid,TT_3[playerid],string);
    if(SpielerInfo[playerid][drivingskill]<25)
    {
    if(geschwindigkeit>=20&&GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
    {
    if(skillcount[playerid]<60)
    {
    skillcount[playerid]++;
    }
    if(skillcount[playerid]==60)
    {
    skillcount[playerid]=0;
    if(SpielerInfo[playerid][drivingpoints]<SpielerInfo[playerid][drivingskill]+17)
    {
    SpielerInfo[playerid][drivingpoints]+=1;
    }
    if(SpielerInfo[playerid][drivingpoints]>=SpielerInfo[playerid][drivingskill]+17)
    {
    SpielerInfo[playerid][drivingpoints]=0;
    SpielerInfo[playerid][drivingskill]+=1;
    SendClientMessage(playerid,COLOR_WHITE,"");
    format(string,sizeof(string),"Du hast Drivingskill %i erreicht, und kannst nun neue Autos fahren.",SpielerInfo[playerid][drivingskill]);
    SendClientMessage(playerid,COLOR_WHITE,string);
    SendClientMessage(playerid,COLOR_WHITE,"");
    }
    }
    }
    }
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER&&hatautoeinentank(vID)&&isEngineOn(vID)||tankt[playerid]!=-1)
    {
    PlayerTextDrawShow(playerid,TT_0[playerid]);
    PlayerTextDrawShow(playerid,TT_1[playerid]);
    PlayerTextDrawShow(playerid,TT_2[playerid]);
    PlayerTextDrawShow(playerid,TT_3[playerid]);
    ////new string[128];
    format(string,sizeof(string),"%s",GetVehicleName(GetVehicleModel(vID)));
    PlayerTextDrawSetString(playerid,TT_2[playerid],string);
    TextDrawShowForPlayer(playerid,Tankbox);
    TextDrawShowForPlayer(playerid,Tankbox2);
    new tankstring[128];
    format(tankstring,sizeof(tankstring),"%i%",tank[vID]);
    PlayerTextDrawSetString(playerid,TT_1[playerid],tankstring);
    PlayerTextDrawTextSize(playerid,TT_1[playerid], 3.0000000,tank[vID]*0.8);
    switch(tank[vID])
    {
    case 0..9:{PlayerTextDrawBoxColor(playerid,TT_1[playerid],COLOR_BRIGHTRED);}
    case 10..24:{PlayerTextDrawBoxColor(playerid,TT_1[playerid],COLOR_YELLOW);}
    case 25..49:{PlayerTextDrawBoxColor(playerid,TT_1[playerid],COLOR_ORANGE);}
    case 50..74:{PlayerTextDrawBoxColor(playerid,TT_1[playerid],COLOR_GREEN);}
    case 75..100:{PlayerTextDrawBoxColor(playerid,TT_1[playerid],LichtGruen);}
    }
    PlayerTextDrawHide(playerid,TT_1[playerid]);
    PlayerTextDrawShow(playerid,TT_1[playerid]);
    if(tank[vID]<=0&&playerweisdastankleerist[playerid]==0)
    {
    SendClientMessage(playerid,COLOR_WHITE,"Der Tank ist leer.");
    engineOff(vID);
    tank[vID]=0;
    playerweisdastankleerist[playerid]=1;
    }
    }
    else if(GetPVarInt(playerid,"fahrschulcar")==1&&hatautoeinentank(vID)&&isEngineOn(vID))
    {
    PlayerTextDrawShow(playerid,TT_0[playerid]);
    PlayerTextDrawShow(playerid,TT_1[playerid]);
    PlayerTextDrawShow(playerid,TT_2[playerid]);
    PlayerTextDrawShow(playerid,TT_3[playerid]);
    format(string,sizeof(string),"%s",GetVehicleName(GetVehicleModel(vID)));
    PlayerTextDrawSetString(playerid,TT_2[playerid],string);
    TextDrawShowForPlayer(playerid,Tankbox);
    TextDrawShowForPlayer(playerid,Tankbox2);
    }
    else
    {
    PlayerTextDrawHide(playerid,TT_0[playerid]);
    PlayerTextDrawHide(playerid,TT_1[playerid]);
    PlayerTextDrawHide(playerid,TT_2[playerid]);
    PlayerTextDrawHide(playerid,TT_3[playerid]);
    TextDrawHideForPlayer(playerid,Tankbox);
    TextDrawHideForPlayer(playerid,Tankbox2);
    }
    }



    und dann geht nix mehr weiter..



    kommt bei mir auch bitte help mfg