Beiträge von DJ Deagle

    Erstmal muss ich sagen, dass das echt tolle Bilder sind!


    Nun, bin ich der einzige der kein Wort spanisch kann und deshalb das RikintoshGFX nich installiert bekomme?

    Hallo,


    ich habe aus reiner Langeweile ein kleines Statistik-Textdraw erstellt.
    Man soll auf die Hauptreiter (Statistik, Lizenzen, Fahrzeuge, Bank) klicken können, um den "Tab" zu wechseln.
    Dabei liegt auch schon das Problem. Der Textdraw wechselt die Farbe beim "Hover" nicht, und lässt sich auch nicht anklicken. Es funktioniert mit keinem Reiter.
    Ich weiß nicht ob es Ironie ist, aber das X ganz Rechts lässt sich anklicken usw.


    Hier ein kleiner Screen der Reiter:


    Hier der Code, wo die Reiter erstellt werden:
    Stats[53][playerid] = CreatePlayerTextDraw(playerid, 132.799972, 152.817794, "Statistik");
    PlayerTextDrawLetterSize(playerid, Stats[53][playerid], 0.449999, 1.600000);
    PlayerTextDrawTextSize(playerid, Stats[53][playerid], 202.799911, -22.897779);
    PlayerTextDrawAlignment(playerid, Stats[53][playerid], 1);
    PlayerTextDrawColor(playerid, Stats[53][playerid], -1);
    PlayerTextDrawSetShadow(playerid, Stats[53][playerid], 0);
    PlayerTextDrawSetOutline(playerid, Stats[53][playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Stats[53][playerid], 51);
    PlayerTextDrawFont(playerid, Stats[53][playerid], 3);
    PlayerTextDrawSetProportional(playerid, Stats[53][playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Stats[53][playerid], true);


    Stats[54][playerid] = CreatePlayerTextDraw(playerid, 220.400009, 152.817825, "Lizenzen");
    PlayerTextDrawLetterSize(playerid, Stats[54][playerid], 0.449999, 1.600000);
    PlayerTextDrawTextSize(playerid, Stats[54][playerid], 281.999877, -34.346660);
    PlayerTextDrawAlignment(playerid, Stats[54][playerid], 1);
    PlayerTextDrawColor(playerid, Stats[54][playerid], -1);
    PlayerTextDrawSetShadow(playerid, Stats[54][playerid], 0);
    PlayerTextDrawSetOutline(playerid, Stats[54][playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Stats[54][playerid], 51);
    PlayerTextDrawFont(playerid, Stats[54][playerid], 3);
    PlayerTextDrawSetProportional(playerid, Stats[54][playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Stats[54][playerid], true);


    Stats[55][playerid] = CreatePlayerTextDraw(playerid, 298.400054, 152.817749, "Fahrzeuge");
    PlayerTextDrawLetterSize(playerid, Stats[55][playerid], 0.424798, 1.580088);
    PlayerTextDrawTextSize(playerid, Stats[55][playerid], 368.799926, -9.955554);
    PlayerTextDrawAlignment(playerid, Stats[55][playerid], 1);
    PlayerTextDrawColor(playerid, Stats[55][playerid], -1);
    PlayerTextDrawSetShadow(playerid, Stats[55][playerid], 0);
    PlayerTextDrawSetOutline(playerid, Stats[55][playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Stats[55][playerid], 51);
    PlayerTextDrawFont(playerid, Stats[55][playerid], 3);
    PlayerTextDrawSetProportional(playerid, Stats[55][playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Stats[55][playerid], true);


    Stats[56][playerid] = CreatePlayerTextDraw(playerid, 397.599975, 153.315551, "Bank");
    PlayerTextDrawLetterSize(playerid, Stats[56][playerid], 0.449999, 1.600000);
    PlayerTextDrawTextSize(playerid, Stats[56][playerid], 431.199920, -7.466667);
    PlayerTextDrawAlignment(playerid, Stats[56][playerid], 1);
    PlayerTextDrawColor(playerid, Stats[56][playerid], -1);
    PlayerTextDrawSetShadow(playerid, Stats[56][playerid], 0);
    PlayerTextDrawSetOutline(playerid, Stats[56][playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Stats[56][playerid], 51);
    PlayerTextDrawFont(playerid, Stats[56][playerid], 3);
    PlayerTextDrawSetProportional(playerid, Stats[56][playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Stats[56][playerid], true);


    Woran liegt es?


    lg
    Deagle


    /e Jeffry:

    ........


    new string[32];//Sollte völlig reichen
    format(string,sizeof string,"Fahrzeug: %s",PlayerVehicle[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
    PlayerTextDrawSetString(playerid, Textdraw6[playerid], string);
    PlayerTextDrawTextDrawShow(playerid, Textdraw6[playerid]);

    Okay.


    Nun als erstes fügst du das in deinen Script oben ein (Wenn du das oder so ähnlich noch nicht hast!):
    new PlayerVehicle[212][] = {
    "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana",
    "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat",
    "Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife",
    "Trailer 1", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo",
    "Seasparrow", "Pizzaboy", "Tram", "Trailer 2", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair",
    "Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic", "Sanchez", "Sparrow",
    "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX", "Burrito",
    "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring",
    "Sandking", "Blista Compact", "Police Maverick", "Boxvillde", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B",
    "Bloodring Banger", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster","Stunt", "Tanker",
    "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",
    "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan", "Blade", "Freight", "Streak",
    "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck LS", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit",
    "Utility", "Nevada", "Yosemite", "Windsor", "Monster A", "Monster B", "Uranus", "Jester", "Sultan", "Stratum", "Elegy", "Raindance",
    "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway",
    "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer 3", "Emperor", "Wayfarer", "Euros", "Hotdog",
    "Club", "Freight Carriage", "Trailer 4", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car (LSPD)", "Police Car (SFPD)",
    "Police Car (LVPD)", "Police Ranger", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage Trailer A",
    "Luggage Trailer B", "Stairs", "Boxville", "Tiller", "Utility Trailer"
    };


    Dann änderst du bei "OnPlayerStateChange" -> if(newstate == PLAYER_STATE_DRIVER) den String des Tachos:
    new string[32];//Sollte völlig reichen
    format(string,sizeof string,"Fahrzeug: %s",PlayerVehicle[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
    PlayerTextDrawSetString(playerid, Textdraw6[playerid], string);


    lg
    Deagle.

    Jedes Fahrzeug hat insgesamt 14 Komponenten (Tuning).
    Ich habe dir mal eine einfache Liste gemacht, wie du die Komponenten von "vehicleid" abfragst:
    Component00 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_SPOILER);
    Component01 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_HOOD);
    Component02 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_ROOF);
    Component03 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_SIDESKIRT);
    Component04 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_LAMPS);
    Component05 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_NITRO);
    Component06 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_EXHAUST);
    Component07 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_WHEELS);
    Component08 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_STEREO);
    Component09 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_HYDRAULICS);
    Component10 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_FRONT_BUMPER);
    Component11 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_REAR_BUMPER);
    Component12 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_VENT_RIGHT);
    Component13 = GetVehicleComponentInSlot(vehicleid,CARMODTYPE_VENT_LEFT);


    lg

    Hallo,


    ich wollte mal mein altes Script wieder zum laufen bringen. Leider wird meine Benutzertabelle nicht erstellt.
    Folgendes wird mir ausgespuckt:


    SQL
    [01:52:03] ::: MySQL Query Error :::
    [01:52:03] ErrorID: 1064
    [01:52:03] Error: 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 '`Carslots` int(11) NOT NULL DEFAULT '1',`Biz` int(11) NOT NULL DEFAULT '-1',`Tut' at line 1
    [01:52:03] ResultID: -1
    [01:52:03] ExtraID: -1
    [01:52:03] Callback: NULL
    [01:52:03] Query: [...]
    [01:52:03] ConnectionHandle: 1


    Das bei folgendem Query:

    SQL
    CREATE TABLE IF NOT EXISTS `accounts` (`ID` int(11) NOT NULL AUTO_INCREMENT,`Name` varchar(24) NOT NULL,`Passwort` varchar(32) NOT NULL,`Admin` int(11) NOT NULL,`Money` int(11) NOT NULL DEFAULT '5000',`Score` int(11) NOT NULL,`Skin` int(11) NOT NULL,`Kicks` int(11) NOT NULL,`Bans` int(11) NOT NULL,`Warns` int(11) NOT NULL,`Banned` int(11) NOT NULL,`BanGrund` varchar(64) NOT NULL,`Mute` int(11) NOT NULL,`Geschlecht` int(11) NOT NULL,`Job` int(11) NOT NULL DEFAULT '0',`NextPayday` int(11) NOT NULL,`Gras` int(11) NOT NULL,`Kokain` int(11) NOT NULL,`Grassamen` int(11) NOT NULL,`Kokainsamen` int(11) NOT NULL,`Joe` int(11) NOT NULL,`Jose` int(11) NOT NULL,`Hunger` int(11) NOT NULL DEFAULT '10',`Durst` int(11) NOT NULL DEFAULT '10',`Harndrang` int(11) NOT NULL DEFAULT '10',`Haus` int(11) NOT NULL DEFAULT '-1',`Exp` int(11) NOT NULL,`ForumAcc` int(11) NOT NULL DEFAULT '0',`AH` int(11) NOT NULL DEFAULT '-1',`Hitsound` int(11) NOT NULL DEFAULT '1',`Timeban` int(11) NOT NULL DEFAULT,`Carslots` int(11) NOT NULL DEFAULT '1',`Biz` int(11) NOT NULL DEFAULT '-1',`Tutorial` int(11) NOT NULL,`Fraktion` int(11) NOT NULL,`Leader` int(11) NOT NULL,`Frakrank` int(11) NOT NULL,`Handy` int(11) NOT NULL,`Handystatus` int(11) NOT NULL,`Handynummer` int(11) NOT NULL,`Handyvertrag` int(11) NOT NULL,`Handyguthaben` int(11) NOT NULL,`Telefonbuch` int(11) NOT NULL,`Benzinkanister` int(11) NOT NULL,`Kanisterliter` int(11) NOT NULL,`Supportpunkte` int(11) NOT NULL,`BankAcc` int(11) NOT NULL,`BankMoney` int(11) NOT NULL,`BankPin` int(11) NOT NULL,`MariLic` int(11) NOT NULL,`KokaLic` int(11) NOT NULL,`UnreadyMari` int(11) NOT NULL,`UnreadyKoka` int(11) NOT NULL,PRIMARY KEY (`ID`));


    Pawn-Version
    new query[2048],q[1024];
    format(q,sizeof q,"CREATE TABLE IF NOT EXISTS `accounts` (\
    `ID` int(11) NOT NULL AUTO_INCREMENT,\
    `Name` varchar(24) NOT NULL,\
    `Passwort` varchar(32) NOT NULL,\
    `Admin` int(11) NOT NULL,\
    `Money` int(11) NOT NULL DEFAULT '5000',\
    `Score` int(11) NOT NULL,\
    `Skin` int(11) NOT NULL,\
    `Kicks` int(11) NOT NULL,");
    strcat(query,q);
    format(q,sizeof q,"`Bans` int(11) NOT NULL,\
    `Warns` int(11) NOT NULL,\
    `Banned` int(11) NOT NULL,\
    `BanGrund` varchar(64) NOT NULL,\
    `Mute` int(11) NOT NULL,\
    `Geschlecht` int(11) NOT NULL,\
    `Job` int(11) NOT NULL DEFAULT '0',\
    `NextPayday` int(11) NOT NULL,\
    `Gras` int(11) NOT NULL,\
    `Kokain` int(11) NOT NULL,\
    `Grassamen` int(11) NOT NULL,\
    `Kokainsamen` int(11) NOT NULL,\
    `Joe` int(11) NOT NULL,\
    `Jose` int(11) NOT NULL,");
    strcat(query,q);
    format(q,sizeof q,"`Hunger` int(11) NOT NULL DEFAULT '10',\
    `Durst` int(11) NOT NULL DEFAULT '10',\
    `Harndrang` int(11) NOT NULL DEFAULT '10',\
    `Haus` int(11) NOT NULL DEFAULT '-1',\
    `Exp` int(11) NOT NULL,\
    `ForumAcc` int(11) NOT NULL DEFAULT '0',\
    `AH` int(11) NOT NULL DEFAULT '-1',\
    `Hitsound` int(11) NOT NULL DEFAULT '1',\
    `Timeban` int(11) NOT NULL DEFAULT,\
    `Carslots` int(11) NOT NULL DEFAULT '1',\
    `Biz` int(11) NOT NULL DEFAULT '-1',");
    strcat(query,q);
    format(q,sizeof q,"`Tutorial` int(11) NOT NULL,\
    `Fraktion` int(11) NOT NULL,\
    `Leader` int(11) NOT NULL,\
    `Frakrank` int(11) NOT NULL,\
    `Handy` int(11) NOT NULL,\
    `Handystatus` int(11) NOT NULL,\
    `Handynummer` int(11) NOT NULL,\
    `Handyvertrag` int(11) NOT NULL,\
    `Handyguthaben` int(11) NOT NULL,\
    `Telefonbuch` int(11) NOT NULL,\
    `Benzinkanister` int(11) NOT NULL,\
    `Kanisterliter` int(11) NOT NULL,\
    `Supportpunkte` int(11) NOT NULL,");
    strcat(query,q);
    format(q,sizeof q,"`BankAcc` int(11) NOT NULL,\
    `BankMoney` int(11) NOT NULL,\
    `BankPin` int(11) NOT NULL,\
    `MariLic` int(11) NOT NULL,\
    `KokaLic` int(11) NOT NULL,\
    `UnreadyMari` int(11) NOT NULL,\
    `UnreadyKoka` int(11) NOT NULL,\
    PRIMARY KEY (`ID`));");
    strcat(query,q);
    mysql_query(query);


    Wo liegt der Fehler?



    lg
    Deagle