[SAMMELTHREAD] Kleine Scripting Fragen

Dein Problem konnte durch einen User gelöst werden? Bedank dich bei ihm indem du seinen Beitrag als Hilfreich markierst sowie einen Daumen oben dalässt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Corvus:
    In dem Code finde ich keine Variable oder sonst etwas was "vehicleid" heißt, daher kann es nicht sein, dass in den Zeilen "vehicleid" nicht definiert ist, es ist ja nicht verwendet.
    Das einzige was mir auffällt ist, dass die Variable bei dir jetzt "Gas" heißt, und nicht mehr "vehTank".
    Ansonsten passen die Error-Meldungen aber nicht zu dem Code, bzw. der Code nicht zu den Meldungen. :wacko:


    Hab das nun so:
    #define GasMax vehTank[GetVehicleModel(veh)-400]
    Das Problem liegt daran:
    public Fillup(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new VID, //Andere Variable
    FillUp,
    string[256],
    TankKosten;
    VID = GetPlayerVehicleID(playerid); //Doppelte Auslesung weil wir oben schon das ja deklariert haben.
    FillUp = GasMax - Gas[VID];
    TogglePlayerControllable(playerid, 1);
    if(Refueling[playerid] == 1){
    if(Gas[VID] < GasMax){//hier wird abgezogen aber oben ist da anderst deklariert und somit geht das nicht.
    for(new TB = 0; TB < sizeof(TankenBizInfo); TB++){
    if(PlayerToPoint(5, playerid, TankenBizInfo[TB][TBPosX], TankenBizInfo[TB][TBPosY], TankenBizInfo[TB][TBPosZ]) && TankenBizInfo[TB][TBProducts] > 0){
    TankKosten = FillUp * TankenBizInfo[TB][TBSpritPreis];
    if(IsACopCar(VID) || IsAOAmtCar(VID) || IsAMedicCar(VID))
    {
    Gas[VID] += FillUp;
    TankenBizInfo[TB][TBProducts] -= FillUp;
    format(string,sizeof(string),"* Du hast deinen Dienstwagen für $%d auf Kosten des Staates betankt.", TankKosten);
    SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
    TankenBizInfo[TB][TBKasse] += TankKosten;
    ExtortionTankenBiz(TB, TankKosten/100*10);
    Refueling[playerid] = 0;
    Update3DTextTanke(TB);
    }
    Sobald ich das an oben anpasse bekomme ich Gamemode Unknown

  • z.B. Fliegen können


    Es ist nicht alles möglich, aber einiges. Fliegen unter anderem ist möglich.


    Ein Beispiel Skript für einen flymode gibt es als FilterSkript von h02:


    flymode.pwn
    //-------------------------------------------------
    //
    // This is an example of using the AttachCameraToObject function
    // to create a no-clip flying camera.
    //
    // h02 2012
    //
    // SA-MP 0.3e and above
    //
    //-------------------------------------------------

    flymode.pwn
    #include <a_samp>

    flymode.pwn
    // Players Move Speed
    #define MOVE_SPEED 100.0
    #define ACCEL_RATE 0.03

    flymode.pwn
    // Players Mode
    #define CAMERA_MODE_NONE 0
    #define CAMERA_MODE_FLY 1

    flymode.pwn
    // Key state definitions
    #define MOVE_FORWARD 1
    #define MOVE_BACK 2
    #define MOVE_LEFT 3
    #define MOVE_RIGHT 4
    #define MOVE_FORWARD_LEFT 5
    #define MOVE_FORWARD_RIGHT 6
    #define MOVE_BACK_LEFT 7
    #define MOVE_BACK_RIGHT 8

    flymode.pwn
    // Enumeration for storing data about the player
    enum noclipenum
    {
    cameramode,
    flyobject,
    mode,
    lrold,
    udold,
    lastmove,
    Float:accelmul
    }
    new noclipdata[MAX_PLAYERS][noclipenum];

    flymode.pwn
    //--------------------------------------------------

    flymode.pwn
    public OnFilterScriptExit()
    {
    // If any players are still in edit mode, boot them out before the filterscript unloads
    for(new x; x<MAX_PLAYERS; x++)
    {
    if(noclipdata[x][cameramode] == CAMERA_MODE_FLY) CancelFlyMode(x);
    }
    return 1;
    }

    flymode.pwn
    //--------------------------------------------------

    flymode.pwn
    public OnPlayerConnect(playerid)
    {
    // Reset the data belonging to this player slot
    noclipdata[playerid][cameramode] = CAMERA_MODE_NONE;
    noclipdata[playerid][lrold] = 0;
    noclipdata[playerid][udold] = 0;
    noclipdata[playerid][mode] = 0;
    noclipdata[playerid][lastmove] = 0;
    noclipdata[playerid][accelmul] = 0.0;
    return 1;
    }

    flymode.pwn
    //--------------------------------------------------

    flymode.pwn
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(!strcmp(cmdtext, "/flymode", true))
    {
    // Place the player in and out of edit mode
    if(GetPVarType(playerid, "FlyMode")) CancelFlyMode(playerid);
    else FlyMode(playerid);
    return 1;
    }
    return 0;
    }

    flymode.pwn
    //--------------------------------------------------

    flymode.pwn
    public OnPlayerUpdate(playerid)
    {
    if(noclipdata[playerid][cameramode] == CAMERA_MODE_FLY)
    {
    new keys,ud,lr;
    GetPlayerKeys(playerid,keys,ud,lr);

    flymode.pwn
    if(noclipdata[playerid][mode] && (GetTickCount() - noclipdata[playerid][lastmove] > 100))
    {
    // If the last move was > 100ms ago, process moving the object the players camera is attached to
    MoveCamera(playerid);
    }

    flymode.pwn
    // Is the players current key state different than their last keystate?
    if(noclipdata[playerid][udold] != ud || noclipdata[playerid][lrold] != lr)
    {
    if((noclipdata[playerid][udold] != 0 || noclipdata[playerid][lrold] != 0) && ud == 0 && lr == 0)
    { // All keys have been released, stop the object the camera is attached to and reset the acceleration multiplier
    StopPlayerObject(playerid, noclipdata[playerid][flyobject]);
    noclipdata[playerid][mode] = 0;
    noclipdata[playerid][accelmul] = 0.0;
    }
    else
    { // Indicates a new key has been pressed

    flymode.pwn
    // Get the direction the player wants to move as indicated by the keys
    noclipdata[playerid][mode] = GetMoveDirectionFromKeys(ud, lr);

    flymode.pwn
    // Process moving the object the players camera is attached to
    MoveCamera(playerid);
    }
    }
    noclipdata[playerid][udold] = ud; noclipdata[playerid][lrold] = lr; // Store current keys pressed for comparison next update
    return 0;
    }
    return 1;
    }

    flymode.pwn
    //--------------------------------------------------

    flymode.pwn
    stock GetMoveDirectionFromKeys(ud, lr)
    {
    new direction = 0;

    if(lr < 0)
    {
    if(ud < 0) direction = MOVE_FORWARD_LEFT; // Up & Left key pressed
    else if(ud > 0) direction = MOVE_BACK_LEFT; // Back & Left key pressed
    else direction = MOVE_LEFT; // Left key pressed
    }
    else if(lr > 0) // Right pressed
    {
    if(ud < 0) direction = MOVE_FORWARD_RIGHT; // Up & Right key pressed
    else if(ud > 0) direction = MOVE_BACK_RIGHT; // Back & Right key pressed
    else direction = MOVE_RIGHT; // Right key pressed
    }
    else if(ud < 0) direction = MOVE_FORWARD; // Up key pressed
    else if(ud > 0) direction = MOVE_BACK; // Down key pressed

    return direction;
    }

    flymode.pwn
    //--------------------------------------------------

    flymode.pwn
    stock MoveCamera(playerid)
    {
    new Float:FV[3], Float:CP[3];
    GetPlayerCameraPos(playerid, CP[0], CP[1], CP[2]); // Cameras position in space
    GetPlayerCameraFrontVector(playerid, FV[0], FV[1], FV[2]); // Where the camera is looking at

    flymode.pwn
    // Increases the acceleration multiplier the longer the key is held
    if(noclipdata[playerid][accelmul] <= 1) noclipdata[playerid][accelmul] += ACCEL_RATE;

    flymode.pwn
    // Determine the speed to move the camera based on the acceleration multiplier
    new Float:speed = MOVE_SPEED * noclipdata[playerid][accelmul];

    flymode.pwn
    // Calculate the cameras next position based on their current position and the direction their camera is facing
    new Float:X, Float:Y, Float:Z;
    GetNextCameraPosition(noclipdata[playerid][mode], CP, FV, X, Y, Z);
    MovePlayerObject(playerid, noclipdata[playerid][flyobject], X, Y, Z, speed);

    flymode.pwn
    // Store the last time the camera was moved as now
    noclipdata[playerid][lastmove] = GetTickCount();
    return 1;
    }

    flymode.pwn
    //--------------------------------------------------

    flymode.pwn
    stock GetNextCameraPosition(move_mode, Float:CP[3], Float:FV[3], &Float:X, &Float:Y, &Float:Z)
    {
    // Calculate the cameras next position based on their current position and the direction their camera is facing
    #define OFFSET_X (FV[0]*6000.0)
    #define OFFSET_Y (FV[1]*6000.0)
    #define OFFSET_Z (FV[2]*6000.0)
    switch(move_mode)
    {
    case MOVE_FORWARD:
    {
    X = CP[0]+OFFSET_X;
    Y = CP[1]+OFFSET_Y;
    Z = CP[2]+OFFSET_Z;
    }
    case MOVE_BACK:
    {
    X = CP[0]-OFFSET_X;
    Y = CP[1]-OFFSET_Y;
    Z = CP[2]-OFFSET_Z;
    }
    case MOVE_LEFT:
    {
    X = CP[0]-OFFSET_Y;
    Y = CP[1]+OFFSET_X;
    Z = CP[2];
    }
    case MOVE_RIGHT:
    {
    X = CP[0]+OFFSET_Y;
    Y = CP[1]-OFFSET_X;
    Z = CP[2];
    }
    case MOVE_BACK_LEFT:
    {
    X = CP[0]+(-OFFSET_X - OFFSET_Y);
    Y = CP[1]+(-OFFSET_Y + OFFSET_X);
    Z = CP[2]-OFFSET_Z;
    }
    case MOVE_BACK_RIGHT:
    {
    X = CP[0]+(-OFFSET_X + OFFSET_Y);
    Y = CP[1]+(-OFFSET_Y - OFFSET_X);
    Z = CP[2]-OFFSET_Z;
    }
    case MOVE_FORWARD_LEFT:
    {
    X = CP[0]+(OFFSET_X - OFFSET_Y);
    Y = CP[1]+(OFFSET_Y + OFFSET_X);
    Z = CP[2]+OFFSET_Z;
    }
    case MOVE_FORWARD_RIGHT:
    {
    X = CP[0]+(OFFSET_X + OFFSET_Y);
    Y = CP[1]+(OFFSET_Y - OFFSET_X);
    Z = CP[2]+OFFSET_Z;
    }
    }
    }
    //--------------------------------------------------

    flymode.pwn
    stock CancelFlyMode(playerid)
    {
    DeletePVar(playerid, "FlyMode");
    CancelEdit(playerid);
    TogglePlayerSpectating(playerid, false);

    flymode.pwn
    DestroyPlayerObject(playerid, noclipdata[playerid][flyobject]);
    noclipdata[playerid][cameramode] = CAMERA_MODE_NONE;
    return 1;
    }

    flymode.pwn
    //--------------------------------------------------

    flymode.pwn
    stock FlyMode(playerid)
    {
    // Create an invisible object for the players camera to be attached to
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    noclipdata[playerid][flyobject] = CreatePlayerObject(playerid, 19300, X, Y, Z, 0.0, 0.0, 0.0);

    flymode.pwn
    // Place the player in spectating mode so objects will be streamed based on camera location
    TogglePlayerSpectating(playerid, true);
    // Attach the players camera to the created object
    AttachCameraToPlayerObject(playerid, noclipdata[playerid][flyobject]);

    flymode.pwn
    SetPVarInt(playerid, "FlyMode", 1);
    noclipdata[playerid][cameramode] = CAMERA_MODE_FLY;
    return 1;
    }

    flymode.pwn
    //--------------------------------------------------


    mfg. :thumbup:

    ast2ufdyxkb1.png


    Leute, lernt scripten und versucht mal lieber etwas selber zu schreiben, als es aus einem GF zu kopieren. :S

  • Warum Errors:
    format(query,sizeof(query),"%s`AH_SpawnSaveX`,`AH_SpawnSaveY`,`AH_SpawnSaveZ`,`AH_SpawnSaveRot`,`AH_TankVolumen`,`AH_Mats`,`AH_Neon`,`AH_NeonType`,`AH_Drugs`,`AH_StandTime`,`AH_Meter`) VALUES (%d,%d,%i,%i,%f,%f,%f,%f,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%f,%f,%f,%f,%i,%i,%i,%i,%i,%i,%i)",
    C:\Users\Daniel\Desktop\irp.pwn(17172 -- 17184) : error 001: expected token: ",", but found "-identifier-"


    printf("(%d,%d,%i,%i,%f,%f,%f,%f,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%f,%f,%f,%f,%i,%i,%i,%i,%i,%i,%i)",
    PlayerInfo[playerid][pSQLID],h,Carlist[playerid][h][ingarage],Carlist[playerid][h][Typ],Carlist[playerid][h][pos_x],Carlist[playerid][h][pos_y],Carlist[playerid][h][pos_z],
    Carlist[playerid][h][z_angle],Carlist[playerid][h][Status],Carlist[playerid][h][Lock],Carlist[playerid][h][Paintjob],
    Carlist[playerid][h][Farbe1],Carlist[playerid][h][Farbe2],Carlist[playerid][h][mod1],Carlist[playerid][h][mod2],
    Carlist[playerid][h][mod3],Carlist[playerid][h][mod4],Carlist[playerid][h][mod5],Carlist[playerid][h][mod6],
    Carlist[playerid][h][mod7],Carlist[playerid][h][mod8],Carlist[playerid][h][mod9],Carlist[playerid][h][mod10],
    Carlist[playerid][h][mod11],Carlist[playerid][h][mod12],Carlist[playerid][h][mod13],Carlist[playerid][h][mod14],
    Carlist[playerid][h][mod15],Carlist[playerid][h][mod16],Carlist[playerid][h][mod17],
    Carlist[playerid][h][SpawnSaveX],Carlist[playerid][h][SpawnSaveY],Carlist[playerid][h][SpawnSaveZ],
    Carlist[playerid][h][SpawnSaveRot],Carlist[playerid][h][TankVolumen],Carlist[playerid][h][cMats],
    Carlist[playerid][h][Neon],Carlist[playerid][h][NeonType],Carlist[playerid][h][cDrugs],Carlist[playerid][h][StandTime],
    Kilometer[Carlist[playerid][h][CarID]]
    C:\Users\Daniel\Desktop\irp.pwn(42879 -- 42891) : error 001: expected token: ",", but found "}"

  • new AttList[256], AttKills[256], AttDeaths[256], AttDamage[256], DefList[256], DefKills[256], DefDeaths[256], DefDamage[256];
    for(new i;i<sizeof(GangwarZones);i++)
    {
    if(GangwarZones[TempZone][fsAttackFaction])
    {
    format(AttList, sizeof(AttList), "%s~r~~h~%s~n~", AttList, Spieler[playerScores[i][player_ID]][pName]);
    format(AttKills, sizeof(AttKills), "%s~r~~h~~h~%d~n~", AttKills, Spieler[playerScores[i][player_ID]][GWRoundKills]);
    format(AttDeaths, sizeof(AttDeaths), "%s~r~~h~~h~%d~n~", AttDeaths, Spieler[playerScores[i][player_ID]][GWRoundDeaths]);
    format(AttDamage, sizeof(AttDamage), "%s~r~~h~~h~%d~n~", AttDamage, playerScores[i][player_Score]);
    }
    else if(GangwarZones[TempZone][fsOwnerFaction])
    {
    format(DefList, sizeof(DefList), "%s~b~~h~%s~n~", DefList, Spieler[playerScores[i][player_ID]][pName]);
    format(DefKills, sizeof(DefKills), "%s~b~~h~~h~%d~n~", DefKills, Spieler[playerScores[i][player_ID]][GWRoundKills]);
    format(DefDeaths, sizeof(DefDeaths), "%s~b~~h~~h~%d~n~", DefDeaths, Spieler[playerScores[i][player_ID]][GWRoundDeaths]);
    format(DefDamage, sizeof(DefDamage), "%s~b~~h~~h~%d~n~", DefDamage, playerScores[i][player_Score]);
    }
    if(i == 0) format(TopString[0], 128, "%s1st - %s ({FFFFFF}%d%s)", GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]), Spieler[playerScores[i][player_ID]][Name], playerScores[i][player_Score], GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]));
    else if(i == 1) format(TopString[1], 128, "%s2nd - %s ({FFFFFF}%d%s)", GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]), Spieler[playerScores[i][player_ID]][Name], playerScores[i][player_Score], GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]));
    else if(i == 2) format(TopString[2], 128, "%s3rd - %s ({FFFFFF}%d%s)", GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]), Spieler[playerScores[i][player_ID]][Name], playerScores[i][player_Score], GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]));
    else if(i == 3) format(TopString[3], 128, "%s4rd - %s ({FFFFFF}%d%s)", GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]), Spieler[playerScores[i][player_ID]][Name], playerScores[i][player_Score], GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]));
    else if(i == 4) format(TopString[4], 128, "%s5rd - %s ({FFFFFF}%d%s)", GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]), Spieler[playerScores[i][player_ID]][Name], playerScores[i][player_Score], GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]));
    }
    TextDrawSetString(EN_AttackerList, AttList);
    TextDrawSetString(EN_AttackerKills, AttKills);
    TextDrawSetString(EN_AttackerDeaths, AttDeaths);
    TextDrawSetString(EN_AttackerDamage, AttDamage);
    TextDrawSetString(EN_DefenderList, DefList);
    TextDrawSetString(EN_DefenderKills, DefKills);
    TextDrawSetString(EN_DefenderDeaths, DefDeaths);
    TextDrawSetString(EN_DefenderDamage, DefDamage);

    10 Warnings 213: tag mismatch


    Undzwar die 5 Sachen mit if(i == 0) format(TopString[0] Kann wer helfen ?

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Hast du auch überall 0.0 eingetragen? Wenn ja, dann füge dort mal andere Werte ein,ist nur mal so ein Versuch.

  • Hey,
    Wie mach ich das das Blitzersystem den wert Prüft wie den das Tacho anzeigt?
    UpdateSpeed

    Spoiler anzeigen

    public UpdateSpeed()
    {
    new string[256];
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
    {
    new const vehicleid = GetPlayerVehicleID(i);
    new Float:speed = GetVehicleSpeed_P(i);
    new Float:memory[3]={0.00,0.00,0.00 };
    new Float:CarHealth;
    GetVehicleHealth(vehicleid, CarHealth);
    CarHealth = CarHealth -250;
    CarHealth = CarHealth/10;
    CarHealth = CarHealth /75;
    CarHealth = CarHealth *100;
    new CarHealthIni =floatround(CarHealth, floatround_floor);
    if(CarHealthIni < 0){ CarHealthIni = 0;}
    GetVehicleVelocity(vehicleid, memory[0], memory[1], memory[2]);
    speed = speed/1,7;
    format(string, sizeof(string), "%d km/h", floatround(speed));
    TextDrawSetString(Speedo5[i], string);
    new model = GetVehicleModel(GetPlayerVehicleID(i));
    if(!IsAFahrrad(model))
    {
    format(string, sizeof(string), "%d/%d", gGas[vehicleid], gMaxGas[vehicleid]);
    TextDrawSetString(Speedo6[i], string);
    }
    else
    {
    format(string, sizeof(string), "-");
    TextDrawSetString(Speedo6[i], string);
    }
    format(string, sizeof(string), "%d\%", CarHealthIni);
    TextDrawSetString(Speedo7[i], string);
    format(string, sizeof(string), "%s", CarName[model-400]);
    TextDrawSetString(Speedo4[i], string);
    }
    }
    }


    GetVehicleSpeed_P

    Spoiler anzeigen
    /***********************************************************************************************************/
    stock Float:GetVehicleVelocityX(vehicleid){new Float:velocity_X, Float:velocity_dump_Y, Float:velocity_dump_Z;GetVehicleVelocity(vehicleid, velocity_X, velocity_dump_Y, velocity_dump_Z);velocity_dump_Y = 0.00;velocity_dump_Z = 0.00;return velocity_X;}
    stock Float:GetVehicleVelocityY(vehicleid){new Float:velocity_dump_X, Float:velocity_Y, Float:velocity_dump_Z;GetVehicleVelocity(vehicleid, velocity_dump_X, velocity_Y, velocity_dump_Z);velocity_dump_X = 0.00;velocity_dump_Z = 0.00;return velocity_Y;}
    stock Float:GetVehicleVelocityZ(vehicleid){new Float:velocity_dump_X, Float:velocity_dump_Y, Float:velocity_Z;GetVehicleVelocity(vehicleid, velocity_dump_X, velocity_dump_Y, velocity_Z);velocity_dump_X = 0.00;velocity_dump_Y = 0.00;return velocity_Z;}
    #define GetVehicleSpeed_P(%0) floatmul(floatsqroot(floatadd(floatpower(GetVehicleVelocityX(GetPlayerVehicleID(%0)), 2), floatadd(floatpower(GetVehicleVelocityY(GetPlayerVehicleID(%0)), 2), floatpower(GetVehicleVelocityZ(GetPlayerVehicleID(%0)), 2)))), 200)


    Blitzer

    Spoiler anzeigen

    stock ErmittleGeschwindigkeit(playerid,bool:kmh) {
    new Float:x,Float:y,Float:z,Float:rtn;
    if(IsPlayerInAnyVehicle(playerid))
    {
    GetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z);
    }
    else
    {
    GetPlayerVelocity(playerid,x,y,z);
    }
    rtn = floatsqroot(x*x+y*y+z*z);
    return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
    }

    @:Jeffry

  • Guten Tag,
    Ich wollte jetzt nicht extra ein neues theread aufmachen,
    Jetzt zu meiner frage ich will nun anfangen ein script zu schreiben weis aber nicht ob ich auf Dini oder MySQL Basis scripten soll. Was meint ihr bzw was ratet ihr mir?


    MFG _J0K3R_

  • Ich rate dir zu MySQL, da dies effektiver und schneller läuft, als DINI.
    Dort kannst du viel mehr mit machen, als mit DINI, und wenn du mal ein UCP schreibst, kannst du damit auch viel besser arbeiten.


    Gleich bekomme ich bestimmt wieder die Antwort das DINI genauso gut ist, aber das ist es nicht!


    MfG

  • Warum werden meine Textdraws nicht angzeigt ? Alle sonstigen werden angzeigt außer diese 3...




    Textdraw11[playerid] = CreatePlayerTextDraw(playerid, 103.000000, 138.133316, "US Army");
    PlayerTextDrawLetterSize(playerid, Textdraw11[playerid], 0.476999, 700.00);
    PlayerTextDrawTextSize(playerid, Textdraw11[playerid], 189.500000, -3.111109);
    PlayerTextDrawAlignment(playerid, Textdraw11[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw11[playerid], -1);
    PlayerTextDrawUseBox(playerid, Textdraw11[playerid], false);
    PlayerTextDrawBoxColor(playerid, Textdraw11[playerid], 255);
    PlayerTextDrawSetShadow(playerid, Textdraw11[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw11[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Textdraw11[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw11[playerid], 2);
    PlayerTextDrawSetProportional(playerid, Textdraw11[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw11[playerid], true);


    Textdraw12[playerid] = CreatePlayerTextDraw(playerid, 94.500000, 194.511108, "Russland");
    PlayerTextDrawLetterSize(playerid, Textdraw12[playerid], 0.478998, 700.00);
    PlayerTextDrawTextSize(playerid, Textdraw12[playerid], 197.500000, -4.977777);
    PlayerTextDrawAlignment(playerid, Textdraw12[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw12[playerid], -1);
    PlayerTextDrawUseBox(playerid, Textdraw12[playerid], false);
    PlayerTextDrawBoxColor(playerid, Textdraw12[playerid], 255);
    PlayerTextDrawSetShadow(playerid, Textdraw12[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw12[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Textdraw12[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw12[playerid], 2);
    PlayerTextDrawSetProportional(playerid, Textdraw12[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw12[playerid], true);


    Textdraw13[playerid] = CreatePlayerTextDraw(playerid, 101.500000, 253.377838, "Premium");
    PlayerTextDrawLetterSize(playerid, Textdraw13[playerid], 0.497999, 700.00);
    PlayerTextDrawTextSize(playerid, Textdraw13[playerid], 192.000000, -6.844444);
    PlayerTextDrawAlignment(playerid, Textdraw13[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw13[playerid], -1);
    PlayerTextDrawUseBox(playerid, Textdraw13[playerid], false);
    PlayerTextDrawBoxColor(playerid, Textdraw13[playerid], 255);
    PlayerTextDrawSetShadow(playerid, Textdraw13[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw13[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Textdraw13[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw13[playerid], 2);
    PlayerTextDrawSetProportional(playerid, Textdraw13[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw13[playerid], true);

    Mit freundlichen Grüßen
    [KoSoVa] :klugs:

  • hab ich aber...


    stock ShowRegisterLoginTextdraws(playerid)
    {
    PlayerTextDrawShow(playerid, Textdraw0[playerid]);
    PlayerTextDrawShow(playerid, Textdraw1[playerid]);
    PlayerTextDrawShow(playerid, Textdraw2[playerid]);
    PlayerTextDrawShow(playerid, Textdraw3[playerid]);
    PlayerTextDrawShow(playerid, Textdraw4[playerid]);
    PlayerTextDrawShow(playerid, Textdraw5[playerid]);
    PlayerTextDrawShow(playerid, Textdraw6[playerid]);
    PlayerTextDrawShow(playerid, Textdraw7[playerid]);
    PlayerTextDrawShow(playerid, Textdraw8[playerid]);
    PlayerTextDrawShow(playerid, Textdraw9[playerid]);
    PlayerTextDrawShow(playerid, Textdraw10[playerid]);
    PlayerTextDrawShow(playerid, Textdraw11[playerid]);
    PlayerTextDrawShow(playerid, Textdraw12[playerid]);
    PlayerTextDrawShow(playerid, Textdraw13[playerid]);
    PlayerTextDrawShow(playerid, Textdraw14[playerid]);
    PlayerTextDrawShow(playerid, Textdraw15[playerid]);
    PlayerTextDrawShow(playerid, Textdraw16[playerid]);
    PlayerTextDrawShow(playerid, Textdraw17[playerid]);
    PlayerTextDrawShow(playerid, Textdraw18[playerid]);


    TextDrawShowForPlayer(playerid, Textdraw19);
    TextDrawShowForPlayer(playerid, Textdraw20);
    TextDrawShowForPlayer(playerid, Textdraw21);
    TextDrawShowForPlayer(playerid, Textdraw22);
    TextDrawShowForPlayer(playerid, Textdraw23);
    TextDrawShowForPlayer(playerid, Textdraw24);
    TextDrawShowForPlayer(playerid, Textdraw25);
    TextDrawShowForPlayer(playerid, Textdraw26);
    return 1;
    }
    //und das führ ich onplayerspawn durch so als test

    Mit freundlichen Grüßen
    [KoSoVa] :klugs:

  • PlayerTextDrawTextSize(playerid, Textdraw11[playerid], 189.500000, -3.111109);


    Entferne mal das "-" vor der 3. Ich weiß nicht ob es bei dieser Funktion war, aber bei irgendeiner TextDraw-Funktion wird das TextDraw nicht angezeigt, wenn der X bzw der Y Wert unter 0 ist.

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen