Beiträge von oliver55555

    Hallo ;)


    Wie die Überschrieft schon sagt habe ich ein Problem mit dem Selecten des Textdraws. Ich kann es zwar anklicken und es geht auch wie ichs wollte aber schon beim einloggen wo die´s noch nicht erscheinen soll kommt 1000mal (TextDraw) You selcted:65535


    Ausschnitt ChatLog:
    [12:56:19] {FFFFFF}SA-MP {B9B9BF}0.3e {FFFFFF}Started
    [12:56:22] Connecting to 127.0.0.1:7777...
    [12:56:22] Connected. Joining the game...
    [12:56:25] Connected to {B9B9BF}SA-MP 0.3 Server
    [12:56:25] (TextDraw) You selected: 65535
    [12:56:25] (TextDraw) You selected: 65535
    [12:56:25] (TextDraw) You selected: 65535
    [12:56:25] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    Hier wie ich es eingefügt habe:
    Variablen
    new Text:Textdraw0;
    new Text:Textdraw1;
    new servertimer;
    OnGameModeInit()
    servertimer = SetTimer("Update", 6000, 1);
    Textdraw0 = TextDrawCreate(155.000000, 284.000000, "Zum eintreten auf (Enter) klicken");
    TextDrawAlignment(Textdraw0, 3);
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 0);
    TextDrawLetterSize(Textdraw0, 0.619999, 1.600000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 1);
    Textdraw1 = TextDrawCreate(42.000000, 315.000000, "ENTER");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 2);
    TextDrawLetterSize(Textdraw1, 0.719999, 2.399999);
    TextDrawColor(Textdraw1, -65281);
    TextDrawSetOutline(Textdraw1, 1);
    TextDrawSetProportional(Textdraw1, 1);
    TextDrawSetSelectable(Textdraw1, true);
    TextDrawSetSelectable(Textdraw0, false);
    public OnGameModeExit()
    {
    KillTimer(servertimer);
    return 1;
    }
    public OnPlayerClickTextDraw(playerid, Text:clickedid)
    {
    if(clickedid == Textdraw1)
    {
    PlayerPort(playerid);
    }
    TextDrawHideForPlayer(playerid, Textdraw1);
    TextDrawHideForPlayer(playerid, Textdraw0);
    CancelSelectTextDraw(playerid);
    return 1;
    }
    public Update()
    {
    for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
    {
    if(NeerOfEnter(playerid))
    {
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    SelectTextDraw(playerid, 0x00FF00FF);
    }
    else
    {
    TextDrawHideForPlayer(playerid, Textdraw1);
    TextDrawHideForPlayer(playerid, Textdraw0);
    CancelSelectTextDraw(playerid);
    }
    }
    return 1;
    }
    public NeerOfEnter(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,1123.4830,-2036.9380,69.8870))
    {
    return 1;
    }
    }
    return 0;
    }
    public PlayerPort(playerid)
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,1123.4830,-2036.9380,69.8870))
    {
    SetPlayerPos(playerid, 379.0703,-2057.4773,10.7084);
    SetPlayerFacingAngle(playerid,176.5881);
    SetPlayerInterior(playerid,0);
    SetCameraBehindPlayer(playerid);
    }
    return 1;
    }


    Hoffe mir kann jemand weiterhelfen ;) LG Oliver

    Guten tag habe ein problem mit mysql und zwar bekomme ich jedes mal die fehler..


    SQL
    [12:38:20] --- Server Shutting Down.
    [12:38:20] MySQL Error (0): Could not execute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.
    [12:38:20] MySQL Error (0): Could not execute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.
    [12:38:20] MySQL Error (0): Could not execute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.
    [12:38:20] MySQL Error (0): Could not execute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.
    [12:38:20] MySQL Error (0): Could not execute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.
    [12:38:20] MySQL Error (0): Could not execute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.
    [12:38:20] MySQL Error (0): Could not execute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.
    [12:38:20] MySQL Error (0): Could not execute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.
    [12:38:20] MySQL Error (0): Could not execute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.


    Sind nicht alle kommen ungefähr noch hunderte gleiche.



    Habe schon alle Query´s nachgeguckt sind eigentlich alle so wie sie sein sollten

    bekomm jetzt in der zeile


    format(lastring[h], sizeof(lastring[h]), "LS-%d",CarInfo[housecars[h]][ccarnummer]);


    diese errors
    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(376) : error 001: expected token: "]", but found "-identifier-"
    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(376) : warning 215: expression has no effect
    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(376) : error 001: expected token: ";", but found "]"
    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(376) : error 029: invalid expression, assumed zero
    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(376) : fatal error 107: too many error messages on one line

    nein wollte ja das das so geht


    for(new h = 0; h < sizeof(CarInfo); h++)
    {
    housecars[0] = AddStaticVehicleEx(CarInfo[h][cVec], CarInfo[h][cAutox], CarInfo[h][cAutoy], CarInfo[h][cAutoz], CarInfo[h][cAutoza], CarInfo[h][cVcol1], CarInfo[h][cVcol2], 60000);
    }
    new lastring[256];
    format(lastring, sizeof(lastring), "LS-%d",CarInfo[housecars[0]][ccarnummer]);
    housecar[housecars[0]] = Create3DTextLabel(lastring,0xB3FF00FF,0.0,0.0,0.0,40.0,0); // Erstellt textlabel für das 1. police car deshalb die [0] das zweite wäre [1] etc.
    Attach3DTextLabelToVehicle(housecar[housecars[0]], housecars[0], 0.0, 0.0, 0.40);



    weil jedes auto ne andere nummer in der datei hat und das sie da auch zu sehen ist und diese nummer ist mit CarInfo[housecars[0]][ccarnummer] in der datei gespeichert


    aber wenn ichs so reinmache denn hab ich keine cars mehr

    Abend habe folgendes problem und zwar
    ist es dies



    unter GameModeInt


    for(new h = 0; h < sizeof(CarInfo); h++)
    {
    housecars[0] = AddStaticVehicleEx(CarInfo[h][cVec], CarInfo[h][cAutox], CarInfo[h][cAutoy], CarInfo[h][cAutoz], CarInfo[h][cAutoza], CarInfo[h][cVcol1], CarInfo[h][cVcol2], 60000);
    }
    new lastring[256];
    format(lastring, sizeof(lastring), "LS-%d",CarInfo[housecars[0]][ccarnummer]);
    housecar[housecars[0]] = Create3DTextLabel(lastring,0xB3FF00FF,0.0,0.0,0.0,40.0,0); // Erstellt textlabel für das 1. police car deshalb die [0] das zweite wäre [1] etc.
    Attach3DTextLabelToVehicle(housecar[housecars[0]], housecars[0], 0.0, 0.0, 0.40);


    wenn das so drin ist erscheinen meine auto´s nicht mehr und 3dlabel auch nicht


    aber wenns so drin ist dann gehts


    for(new h = 0; h < sizeof(CarInfo); h++)
    {
    housecars[0] = AddStaticVehicleEx(CarInfo[h][cVec], CarInfo[h][cAutox], CarInfo[h][cAutoy], CarInfo[h][cAutoz], CarInfo[h][cAutoza], CarInfo[h][cVcol1], CarInfo[h][cVcol2], 60000);
    }
    new lastring[256];
    format(lastring, sizeof(lastring), "LS-5408",);
    housecar[housecars[0]] = Create3DTextLabel(lastring,0xB3FF00FF,0.0,0.0,0.0,40.0,0); // Erstellt textlabel für das 1. police car deshalb die [0] das zweite wäre [1] etc.
    Attach3DTextLabelToVehicle(housecar[housecars[0]], housecars[0], 0.0, 0.0, 0.40);



    bitte brauche hilfe

    Hallo brauche hilfe kriege immer diese warnigs


    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(281) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(308) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(349) : warning 224: indeterminate array size in "sizeof" expression (symbol "")



    forward LoadHouseCar();
    public LoadHouseCar()
    {
    new arrCoords[7][64];
    new strFromFile2[256];
    new File: file = fopen("HouseCar.cfg", io_read);
    if (file)
    {
    new idx;
    zeile 281 while (idx < sizeof(CarInfo))
    {
    fread(file, strFromFile2);
    split(strFromFile2, arrCoords, ',');
    CarInfo[idx][cAutox] = floatstr(arrCoords[0]);
    CarInfo[idx][cAutoy] = floatstr(arrCoords[1]);
    CarInfo[idx][cAutoz] = floatstr(arrCoords[2]);
    CarInfo[idx][cAutoza] = floatstr(arrCoords[3]);
    CarInfo[idx][cVec] = strval(arrCoords[4]);
    if(CarInfo[idx][cVec] == 457)
    {
    CarInfo[idx][cVec] = 411;
    }
    CarInfo[idx][cVcol1] = strval(arrCoords[5]);
    CarInfo[idx][cVcol2] = strval(arrCoords[6]);
    //printf("HouseInfo:%d Owner:%s hTakings %d hVec %d",idx,HouseInfo[idx][hOwner],HouseInfo[idx][hTakings],HouseInfo[idx][hVec]);
    idx++;
    }
    fclose(file);
    }
    return 1;
    }


    public OnPropUpdate()
    {
    new idx;
    new File: file2;
    zeile 308 while (idx < sizeof(CarInfo))
    {
    new coordsstring[256];
    format(coordsstring, sizeof(coordsstring), "%f,%f,%f,%f,%f,%f,%d\n",
    CarInfo[idx][cAutox],
    CarInfo[idx][cAutoy],
    CarInfo[idx][cAutoz],
    CarInfo[idx][cAutoza],
    CarInfo[idx][cVec],
    CarInfo[idx][cVcol1],
    CarInfo[idx][cVcol2]);
    if(idx == 0)
    {
    file2 = fopen("HouseCar.cfg", io_write);
    }
    else
    {
    file2 = fopen("HouseCar.cfg", io_append);
    }
    fwrite(file2, coordsstring);
    idx++;
    fclose(file2);
    }
    return 1;
    }



    zeile 349 for(new h = 0; h < sizeof(CarInfo); h++)
    {
    AddStaticVehicleEx(CarInfo[h][cVec], CarInfo[h][cAutox], CarInfo[h][cAutoy], CarInfo[h][cAutoz], CarInfo[h][cAutoza], CarInfo[h][cVcol1], CarInfo[h][cVcol2], 60000);
    }

    hat geklappt danke


    eine frage wie kann ich das bei mehr fahrzeugen machen


    hab das so klappt aber nicht



    new Text3D:lspdla[MAX_VEHICLES];
    new lspdcars[14];



    lspdcars[0] = AddStaticVehicle(596,1535.9907,-1678.3896,13.1083,0.2292,108,1); // polizei car
    lspdcars[1] = AddStaticVehicle(596,1595.2410,-1711.6542,5.6183,358.9304,108,1); // polizei car
    lspdcars[2] = AddStaticVehicle(596,1570.3079,-1711.8168,5.6110,0.7782,108,1); // polizei car
    lspdcars[3] = AddStaticVehicle(596,1574.2162,-1711.7783,5.6130,359.8522,108,1); // polizei car
    lspdcars[4] = AddStaticVehicle(596,1578.6810,-1711.6287,5.6064,0.7437,108,1); // polizei car
    lspdcars[5] = AddStaticVehicle(596,1583.3082,-1711.4579,5.6115,359.4652,108,1); // polizei car
    lspdcars[6] = AddStaticVehicle(596,1587.5066,-1711.4901,5.6070,359.2059,108,1); // polizei car
    lspdcars[7] = AddStaticVehicle(596,1591.4891,-1711.3300,5.6107,1.0109,108,1); // polizei car
    lspdcars[8] = AddStaticVehicle(596,1595.2545,-1711.6543,5.6178,358.7379,108,1); // polizei car
    lspdcars[9] = AddStaticVehicle(427,1526.5662,-1645.0560,6.0254,179.0013,108,1); // polizei enforcer
    lspdcars[10] = AddStaticVehicle(427,1530.6736,-1645.2733,6.0249,178.4519,108,1); // polizei enforcer
    lspdcars[11] = AddStaticVehicle(427,1534.6434,-1645.3639,6.0238,178.5852,108,1); // polizei enforcer
    lspdcars[12] = AddStaticVehicle(601,1544.0931,-1668.0110,5.6746,90.6946,108,1); // polizei car
    lspdcars[13] = AddStaticVehicle(601,1544.2815,-1672.2378,5.6494,89.6364,108,1); // polizei car
    zeile 312 lspdla[lspdcars] = Create3DTextLabel("LSPD 110",0xB3FF00FF,0.0,0.0,0.0,40.0,0);
    313 Attach3DTextLabelToVehicle(lspdla[lspdcars], lspdcars, 0.0, 0.0, 0.40);




    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(312) : error 033: array must be indexed (variable "lspdcars")
    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(313) : error 033: array must be indexed (variable "lspdcars")

    new Text3D:cartest[MAX_VEHICLES];


    bei gamemodeint


    Zeile 258 new testid = GetPlayerVehicleID;
    Zeile 311 cartest[testid] = AddStaticVehicle(601,1544.2815,-1672.2378,5.6494,89.6364,108,1);
    cartest[testid] = Create3DTextLabel("LSPD CAR",0xB3FF00FF,0.0,0.0,0.0,40.0,0);
    Attach3DTextLabelToVehicle(cartest[testid], testid, 0.0, 0.0, 0.40);


    das sind die errors


    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(258) : error 076: syntax error in the expression, or invalid function call
    D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(311) : warning 213: tag mismatch


    #define RECORDING "CARBOT"


    #define RECORDING_TYPE 1


    public OnRecordingPlaybackEnd()
    StartRecordingPlayback(RECORDING_TYPE, RECORDING);


    public OnNPCEnterVehicle(vehicleid, seatid)
    StartRecordingPlayback(RECORDING_TYPE, RECORDING);


    public OnNPCExitVehicle()
    StopRecordingPlayback();


    diese zeilen kommen in ein mini script in den orner npcmodes


    Lies dir das Tut nochmal genau durch
    Samp 0.3 Bots Erstellen

    if(IsPlayerNPC(playerid))
    {
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"Dancer1",true))
    {
    SetPlayerSkin(playerid, 12);
    }
    }


    füge das nochmal unter OnPlayerConnect

    naja nich unbedingt bei gf werden den player erst nach den register coordinaten vergeben beim normalen spawnen nicht das heißt entweder spawnt er im nix oder er crasht

    du brauchst das neue include <a_NPC> und weil das gf ist werden die npc höchstwarscheinlich nicht auf den server drauf kommen. es sei denn du nimmst alles raus wo der player beim login gekick wird