Beiträge von XDFanta

    Hallo Leute,
    bei mir funktioniert mein /fill Funktion nicht hier der Code:

    if(strcmp(cmd, "/fill", true) == 0)
    // ShowPlayerDialog(playerid, DIALOG_BEZAHLEN, DIALOG_STYLE_LIST, "Womit möchtest du bezahlen", "Bargeld\nEc Karte", "Auswälen", "");
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Du musst in einem Fahrzeug sitzen!");
    if(GetPlayerVehicleSeat(playerid) != 0) return SendClientMessage(playerid, COLOR_WHITE, "Nur der Fahrer kann das Fahrzeug auftanken!");
    new notanke = 0;
    for(new b = 0; b < sizeof(TankeInfo); b++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, TankeInfo[b][tEntranceX], TankeInfo[b][tEntranceY], TankeInfo[b][tEntranceZ]))
    {
    if (IsPlayerInRangeOfPoint(playerid,3.0,-91.6928,-1170.3101,2.4106) ||IsPlayerInRangeOfPoint(playerid,3.0,-2024.4131,156.3826,28.8359)
    || IsPlayerInRangeOfPoint(playerid,3.0,2411.5710,976.1568,45.4609) || IsPlayerInRangeOfPoint(playerid,3.0, -1674.7457,413.9423,7.1797)
    || IsPlayerInRangeOfPoint(playerid,3.0, 1939.7811,-1772.3312,13.3906)|| IsPlayerInRangeOfPoint(playerid,3.0, 1004.9082,-940.9944,41.7214)
    || IsPlayerInRangeOfPoint(playerid,3.0, 1939.2225,-1772.7452,12.9431)
    || PlayerInfo[playerid][pLocal] != 255)
    }
    if(IsPlayerConnected(playerid))
    {
    if(IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
    {
    return SendClientMessage(playerid,COLOR_YELLOW," Du kannst kein Fahrrad betanken!");
    }
    SetTimer("Fillup",RefuelWait,0);
    Refueling[playerid] = 1;
    FreezePlayer(playerid);
    SendClientMessage(playerid,COLOR_WHITE," Dein Fahrzeug wird betankt, Bitte warten....");
    notanke = 0;
    return 1;
    }
    }
    else notanke = 1;
    }
    if(notanke == 1) {
    return SendClientMessage(playerid, COLOR_WHITE, "Du bist an keiner Tankstelle.");
    }


    }


    Hier die Fehler:

    C:\Users\Marvin\Desktop\Yöha\gamemodes\GER.pwn(39536) : error 029: invalid expression, assumed zero
    C:\Users\Marvin\Desktop\Yöha\gamemodes\GER.pwn(39536 -- 39537) : warning 215: expression has no effect
    C:\Users\Marvin\Desktop\Yöha\gamemodes\GER.pwn(39537) : error 001: expected token: ";", but found "if"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.

    Mir fällt da spontan die ID 16770 ein, ist ein Schiesstand.Dann die ID´s 1583 & 1584, das sind Figurscheiben, die man zerschiesen kann.


    Melde mich dann nochmal für weitere edits.


    lg xPatrick



    Danke dir weißt du vielleicht noch eine Zielscheibe die in teile Zerbricht wenn man auf eine Stelle schießt und nicht nach einem Schuss gleich weg ist ?

    Ich suche ein paar Objekte für einen Schießstand
    damit man da z.b. Waffenprüfung machen kann.


    //Edit und ich suche noch sowas wie Parklücken also diese Streifen die die breite begrenzen.


    //Edit² am besten Zielscheiben die man zerschießen kann nicht nur die wo man einmal drauf schießt und die dann verschwinden.

    Unter den enums bei new..


    //Edit


    };
    new Kaufliste[46][ahModell] = {
    {"Stallion",0,439,-1,30000,3000,783.0,-1335.0,13.2,121.1},
    {"Feltzer",0,533,-1,55000,5500,783.0,-1340.0,13.2,121.1},
    {"Windsor",0,555,-1,75000,7500,783.0,-1345.0,13.2,121.1},
    {"Blade",0,536,-1,12500,1250,783.0,-1350.0,13.2,121.1},
    {"Remington",0,534,-1,45000,4500,783.0,-1355.0,13.2,121.1},
    {"Savanna",0,567,-1,14500,1450,783.0,-1360.0,13.2,121.1},
    {"Slamvan",0,535,-1,48000,4800,783.0,-1365.0,13.2,121.1},
    {"Voodoo",0,412,-1,13000,1300,783.0,-1370.0,13.2,121.1},
    {"Huntley",0,579,-1,80000,8000,783.0,-1375.0,13.2,121.1},
    {"Buccaneer",0,518,-1,13000,1300,783.0,-1380.0,13.2,121.1},
    {"Clover",0,542,-1,7500,750,765.0,-1360.0,13.4,301.1},
    {"Elegant",0,507,-1,24000,2400,765.0,-1365.0,13.4,301.1},
    {"Elegy",0,562,-1,55000,5500,765.0,-1370.0,13.4,301.1},
    {"Esperanto",0,419,-1,14500,1450,765.0,-1375.0,13.4,301.1},
    {"Fortune",0,526,-1,9500,9500,765.0,-1380.0,13.4,301.1},
    {"Sultan",0,560,-1,60000,6000,766.0,-1333.0,13.3,211.1},
    {"Sunrise",0,550,-1,16000,1600,761.0,-1333.0,13.3,211.1},
    {"Vincent",0,540,-1,15000,1500,756.0,-1333.0,13.3,211.1},
    {"Alpha",0,602,-1,42000,4200,751.0,-1333.0,13.3,211.1},
    {"Banshee",0,429,-1,92000,9200,746.0,-1333.0,13.3,211.1},
    {"Blista Compact",1,496,-1,8500,850,-1668.6447,1207.0372,7.0249,309.5959},
    {"Buffalo",1,402,-1,39500,3950,-1663.6709,1215.2883,7.0234,274.9868},
    {"Bullet",1,541,-1,102600,10260,-1651.3892,1210.3469,7.0208,281.3321},
    {"Cheetah",1,415,-1,115000,115000,-1677.3560,1207.8099,13.4461,208.2602},
    {"Club",1,589,-1,18000,1800,-1665.7789,1222.4406,13.4485,279.6459},
    {"Euros",1,587,-1,42999,4299,-1660.7256,1217.6407,13.4444,283.1553},
    {"Infernus",1,411,-1,120000,12000,-1653.2462,1210.7842,13.4460,266.7211},
    {"Jester",1,559,-1,52000,5200,-1676.0128,1207.1641,20.9248,261.5029},
    {"Phoenix",1,603,-1,33900,3390,-1664.4386,1206.8241,20.9289,332.5978},
    {"Super GT",1,506,-1,130000,13000,-1651.6372,1208.2538,20.9231,305.1015},
    {"Turismo",1,451,-1,160000,16000,-1665.1248,1222.7113,20.9265,267.4103},
    {"Uranus",1,558,-1,53000,5300,-1661.1943,1217.9629,20.9268,286.1662},
    {"ZR-350",1,477,-1,35000,3500,-1654.3116,1214.8097,20.9267,173.5712},
    {"Roller",2,462,-1,1500,150,2469.2820,-1558.2688,23.6004,3.7312},
    {"NRG-500",2,522,-1,11000,1100,2463.5400,-1558.4592,23.6836,26.0719},//35
    {"Freeway",2,463,-1,9000,900,2466.3186,-1558.0845,23.5448,22.6111},
    {"PCJ-600",2,461,-1,8500,850,2461.3887,-1558.6592,23.5863,16.6210},
    {"Sanchez",2,468,-1,8000,800,2459.5371,-1558.3721,23.5854,20.2738},
    {"Quad",2,471,-1,9200,920,2457.0515,-1558.3785,23.5862,20.0696},
    {"FCR-900",2,521,-1,12000,1200,2467.7080,-1557.9358,23.5798,14.9111},
    {"BF-400",2,581,-1,5500,550,2470.5625,-1558.3462,23.5795,17.0096},
    {"Wayfarer",2,586,-1,7000,700,2471.6829,-1557.7922,23.5804,19.9987},
    {"Bike",2,509,-1,399,39,2473.8064,-1558.0052,23.6181,29.8069},
    {"Moutian-Bike",2,510,-1,799,79,2475.1824,-1557.2169,23.6197,29.8069},
    {"BMX",2,481,-1,349,34,2479.4692,-1557.7723,23.6513,29.8069},
    {"BF-Injection",2,424,-1,29999,2999,2486.3831,-1558.3986,23.6999,29.8069}//46
    };


    new Spectating[MAX_PLAYERS][1];


    // Anfang der Tuningkomponentenliste
    new spoiler[20][0] = {
    {1000},
    {1001},
    {1002},
    {1003},
    {1014},
    {1015},
    {1016},
    {1023},
    {1058},
    {1060},
    {1049},
    {1050},
    {1138},
    {1139},
    {1146},
    {1147},
    {1158},
    {1162},
    {1163},
    {1164}
    };


    new nitro[3][0] = {
    {1008},
    {1009},
    {1010}
    };


    new fbumper[23][0] = {
    {1117},
    {1152},
    {1153},
    {1155},
    {1157},
    {1160},
    {1165},
    {1167},
    {1169},
    {1170},
    {1171},
    {1172},
    {1173},
    {1174},
    {1175},
    {1179},
    {1181},
    {1182},
    {1185},
    {1188},
    {1189},
    {1192},
    {1193}
    };


    new rbumper[22][0] = {
    {1140},
    {1141},
    {1148},
    {1149},
    {1150},
    {1151},
    {1154},
    {1156},
    {1159},
    {1161},
    {1166},
    {1168},
    {1176},
    {1177},
    {1178},
    {1180},
    {1183},
    {1184},
    {1186},
    {1187},
    {1190},
    {1191}
    };


    new exhaust[28][0] = {
    {1018},
    {1019},
    {1020},
    {1021},
    {1022},
    {1028},
    {1029},
    {1037},
    {1043},
    {1044},
    {1045},
    {1046},
    {1059},
    {1064},
    {1065},
    {1066},
    {1089},
    {1092},
    {1104},
    {1105},
    {1113},
    {1114},
    {1126},
    {1127},
    {1129},
    {1132},
    {1135},
    {1136}
    };


    new bventr[2][0] = {
    {1042},
    {1044}
    };


    new bventl[2][0] = {
    {1043},
    {1045}
    };


    new bscoop[4][0] = {
    {1004},
    {1005},
    {1011},
    {1012}
    };


    new rscoop[13][0] = {
    {1006},
    {1032},
    {1033},
    {1035},
    {1038},
    {1053},
    {1054},
    {1055},
    {1061},
    {1067},
    {1068},
    {1088},
    {1091}
    };


    new lskirt[21][0] = {
    {1007},
    {1026},
    {1031},
    {1036},
    {1039},
    {1042},
    {1047},
    {1048},
    {1056},
    {1057},
    {1069},
    {1070},
    {1090},
    {1093},
    {1106},
    {1108},
    {1118},
    {1119},
    {1133},
    {1122},
    {1134}
    };


    new rskirt[21][0] = {
    {1017},
    {1027},
    {1030},
    {1040},
    {1041},
    {1051},
    {1052},
    {1062},
    {1063},
    {1071},
    {1072},
    {1094},
    {1095},
    {1099},
    {1101},
    {1102},
    {1107},
    {1120},
    {1121},
    {1124},
    {1137}
    };


    new hydraulics[1][0] = {
    {1087}
    };


    new base[1][0] = {
    {1086}
    };


    new rbbars[2][0] = {
    {1109},
    {1110}
    };


    new fbbars[2][0] = {
    {1115},
    {1116}
    };


    new wheels[17][0] = {
    {1025},
    {1073},
    {1074},
    {1075},
    {1076},
    {1077},
    {1078},
    {1079},
    {1080},
    {1081},
    {1082},
    {1083},
    {1084},
    {1085},
    {1096},
    {1097},
    {1098}
    };


    new lights[2][0] = {
    {1013},
    {1024}
    };
    // Ende der Tuningkomponentenliste


    #if defined CARSELL
    new bietetAn[MAX_PLAYERS][2];
    #endif



    //Edit wo da ?

    Hallo Fanta,


    Ich denke mal viele hier verstehen dich nicht :D (Mich eingeschlossen)
    Willst du einfach nur Fahrzeuge ins Script einfügen?


    Oder willst du die Koordinaten Wissen wenn man auf den Fahrzeug ist?



    Ich habe da ja was eingezeichnet und da würde ich gerne ein Objekt draufbauen
    hier wenn man /flash macht das da eine Police Sirene drauf ist davon bräuchte ich die Positonen.

    Guten Tag ich habe da mal ne frage und zwar geht es um folgendes ich bin grade dabei mir ein Flash zu scripten soweit ist alles gut aber wie kann ich die Koordinaten auf dem Fahrzeug herausfinden z.b. brauche ich jetzt diese stelle von der NRG




    wäre sehr nett wenn mir die jemand sagen könnte bzw, sagen könnte wie ich allgemein das alles finde und falls ich hier falsch bin verbessert mich bitte.

    Hast du mysql_connect im script?

    Ja habe ich


    mysql_init(LOG_ALL, 1);
    mysql_connect(host,mysqluser,database,mysqlpass);




    //Edit immer noch keine Lösung gefunden.


    //Edit² Habe jetzt mein MySqL Plugin mal erneuert jetzt bekomme ich diesen Fehler und mein Server erkennt das Script nicht mehr.


    [11:17:30] Loading plugin: mysql.so
    [11:17:30]


    > MySQL plugin R5 successfully loaded.


    [11:17:30] Error: Function not registered: 'mysql_init'
    [11:17:30] Script[gamemodes/reallife.amx]: Run time error 19: "File or function is not found"

    Habe jetzt seit kurzem einen MySqL Script
    und mein Server läuft über Nitrado aber nun ist meine Frage habe hier das Problem das ich nicht auf mein MySqL drauf kann.



    23:13:33] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
    [23:13:33] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
    [23:13:33] [MySQL] Error (0): Function: mysql_num_rows called when not connected to any database. Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
    [23:13:33] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
    [23:13:33] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
    [23:13:33] [MySQL] Error (0): Function: mysql_num_rows called when not connected to any database. Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).



    Ich hoffe jemand kann mit vielleicht eine Lösung sagen.


    MFG
    XDFanta