Beiträge von Maurice.

    Hallo, undzwar habe ich ein Problem. In der Mysql DB sind 3 Fahrzeuge die werden auch richtig geladen nur wenn ich leertaste drücke wird nur 1 angezeigt code:
    new string2[200];
    for(new i=0;i!=MAX_AUTOHAUS;i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,3,AutoHaus[i][aX],AutoHaus[i][aY],AutoHaus[i][aZ]))
    {
    if(i == 1)
    {
    format(string2,sizeof string2,"%s",CarName[AutoHausAuto[i][aAutoID] - 400]);
    }
    else
    {
    format(string2,sizeof string2,"%s\n%s",string2,CarName[AutoHausAuto[i][aAutoID] - 400]);
    }
    }
    }
    ShowPlayerDialog(playerid,DIALOG_AUTOHAUS,DIALOG_STYLE_LIST,"Autohaus",string2,"Weiter","");

    Bringt auch nichts ich habe es mal in einen befehl gemacht: ocmd:test(playerid,params[])
    {
    new string2[200];
    for(new i=0;i!=MAX_AUTOHAUS;i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,3,AutoHaus[i][aX],AutoHaus[i][aY],AutoHaus[i][aZ]))
    {
    for(new n=1;n<sizeof(AutoHausAuto);n++)
    {
    format(string2,sizeof string2,"\n%s",CarName[AutoHausAuto[n][aAutoID] - 400]);
    }
    ShowPlayerDialog(playerid,DIALOG_AUTOHAUS,DIALOG_STYLE_LIST,"Autohaus",string2,"Weiter","");
    }
    continue;
    }
    return 1;
    }


    wenn ich dies nun mache kommt ingame: SERVER: Unkown Command

    Hallo ich bins mal wieder 8|


    warum kommt der dialog nicht ?
    new string[200];
    for(new i = 0; i != MAX_AUTOHAUS; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,AutoHaus[i][aX],AutoHaus[i][aY],AutoHaus[i][aZ]))
    {
    for(new n = 1; n <sizeof(AutoHausAuto);n++)
    {
    format(string,sizeof(string),"\n%s",CarName[AutoHausAuto[n][aAutoID] - 400]);
    break;
    }
    ShowPlayerDialog(playerid,DIALOG_AUTOHAUS,DIALOG_STYLE_LIST,"Autohaus",string,"Weiter","");
    }
    break;
    }
    ich gehe in das Pickup und es passiert einfach garnix

    Hallo,


    ich habe mal wieder eine frage undzwar. Ich lasse eine Vehicle ID abspeichern. Und ich möchte sie im Dialog auf rufen aber der name von der ID. z.B CarID = 411 und angezeigt soll dann Infernus. Ich habe bissher das hier:
    new CarName[][] =
    {
    "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", "Previon", "Coach", "Cabbie",
    "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",
    "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "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", "Hustler", "Intruder", "Primo",
    "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",
    "Windsor", "Monster", "Monster", "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", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
    "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",
    "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
    "Phoenix", "2. Gebrauchtwagen", "1. Gebrauchtwagen", "Luggage", "Luggage", "Stairs", "Boxville",
    "Tiller", "Utility Trailer"
    };

    Hallo, ich dachte das ist hier erledigt da ich das Problem gefixxt habe. Doch nun kommt das nächste Problem wen ich jettze auf das 2 klicke ( Bullet ) switch er sofort wieder nach oben (infernus). Code;


    new string[100],buffer[50];
    if(IsPlayerInRangeOfPoint(playerid,1.0,AutoHaus[0][iX],AutoHaus[0][iY],AutoHaus[0][iZ]))
    {
    for(new i; i<sizeof aAutoHaus; i++) format(buffer,sizeof buffer,"%s\n",aAutoHaus[i][aName]),strins(string,buffer,strlen(string),sizeof string);
    ShowPlayerDialog(playerid,AUTOHAUS,DIALOG_STYLE_LIST,"Autohaus",string,"Weiter","Abbrechen");


    }
    Kaliber:

    Hallo,


    undzwar ich möchte alles was in ein enum ist anzeige lassen sprich:


    enum autoos1 {
    aName[20],
    aPreis
    };


    new aAutoHaus[][autoos1] = { // AB HIER ICH MÖCHTE DIE NAMEN ANZEIGEN LASSEN ( INFERNUS UND BULLET
    {"Infernus",100},
    {"Bullet",100}
    };


    könnte mir jemand ein beispiel machen ?



    angefanger code:
    new string[50];
    if(IsPlayerInRangeOfPoint(playerid,1.0,AutoHaus[0][iX],AutoHaus[0][iY],AutoHaus[0][iZ]))
    {
    ShowPlayerDialog(playerid,AUTOHAUS,DIALOG_STYLE_LIST,"Autohaus",string,"Weiter","Abbrechen");
    }

    Hallo, ich kriege vollgende warnings in der Server-Log:
    [11:59:03] sscanf warning: sscanf specifiers do not require '' before them.
    [11:59:12] sscanf warning: sscanf specifiers do not require '' before them.
    [11:59:12] sscanf warning: Strings without a length are deprecated, please add a destination size.
    [11:59:17] sscanf warning: sscanf specifiers do not require '' before them.
    [11:59:17] sscanf warning: Strings without a length are deprecated, please add a destination size.
    [11:59:25] sscanf warning: sscanf specifiers do not require '' before them.
    [11:59:25] sscanf warning: Strings without a length are deprecated, please add a destination size.
    [11:59:29] sscanf warning: sscanf specifiers do not require '' before them.
    [11:59:29] sscanf warning: Strings without a length are deprecated, please add a destination size.
    [11:59:33] sscanf warning: sscanf specifiers do not require '' before them.
    [11:59:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
    [11:59:40] sscanf warning: sscanf specifiers do not require '' before them.
    [11:59:40] sscanf warning: Strings without a length are deprecated, please add a destination size.
    [11:59:44] sscanf warning: sscanf specifiers do not require '' before them.
    [11:59:44] sscanf warning: Strings without a length are deprecated, please add a destination size.
    [11:59:45] sscanf warning: sscanf specifiers do not require '' before them.
    [11:59:45] sscanf warning: Strings without a length are deprecated, please add a destination size.


    code.
    ocmd:cveh(playerid,params[])
    {
    new command[50];
    if(Eingeloggt[playerid] == 0) return SendClientMessage(playerid,GRAU,"Du bist nicht eingeloggt.");
    if(sscanf(params,"%s",command))return SendClientMessage(playerid,HELLBLAU,"Benutzung: /cveh {AFFF00}[mhaube,kraum,alarm,motor]");
    if(strcmp(command,"motor",true) == 0)
    {
    if(GetPlayerVehicleSeat(playerid) == 0)
    {
    new car2 = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(car2) == 509 || GetVehicleModel(car2) == 481 || GetVehicleModel(car2) == 510)
    {
    SendClientMessage(playerid,GRAU,"Fahrräder besitzen kein Motor!");
    }
    else if(Motor[car2] == false)
    {
    GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car2,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    Motor[car2] = true;
    GameTextForPlayer(playerid, "~g~Motor gestartet", 1000,1);
    }


    else
    {
    GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car2,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Motor[car2] = false;
    GameTextForPlayer(playerid, "~r~Motor gestoppt", 1000, 1);
    }
    }
    }
    if(strcmp(command,"mhaube",true) == 0)
    {
    if(GetPlayerVehicleSeat(playerid) == 0)
    {
    new car2 = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(car2) == 509 || GetVehicleModel(car2) == 481 || GetVehicleModel(car2) == 510)
    {
    SendClientMessage(playerid,GRAU,"Fahrräder besitzen kein Motor!");
    }
    else if(MotorHaube[car2] == false)
    {
    GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car2,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
    MotorHaube[car2] = true;
    GameTextForPlayer(playerid, "~g~Motorhaube geöffnet", 1000,1);
    }
    else
    {
    GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car2,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
    MotorHaube[car2] = false;
    GameTextForPlayer(playerid, "~r~Motorhaube geschlossen", 1000, 1);
    }
    }
    }
    if(strcmp(command,"kraum",true) == 0)
    {
    if(GetPlayerVehicleSeat(playerid) == 0)
    {
    new car2 = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(car2) == 509 || GetVehicleModel(car2) == 481 || GetVehicleModel(car2) == 510)
    {
    SendClientMessage(playerid,GRAU,"Fahrräder besitzen kein Motor!");
    }
    else if(MotorRaum[car2] == false)
    {
    GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
    MotorRaum[car2] = true;
    GameTextForPlayer(playerid, "~g~Kofferraum geöffnet", 1000,1);
    }
    else
    {
    GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
    MotorRaum[car2] = false;
    GameTextForPlayer(playerid, "~r~Kofferraum geschlossen", 1000, 1);
    }
    }
    }
    if(strcmp(command,"alarm",true) == 0)
    {
    if(GetPlayerVehicleSeat(playerid) == 0)
    {
    new car2 = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(car2) == 509 || GetVehicleModel(car2) == 481 || GetVehicleModel(car2) == 510)
    {
    SendClientMessage(playerid,GRAU,"Fahrräder besitzen kein Motor!");
    }
    else if(MotorAlarm[car2] == false)
    {
    GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car2,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
    MotorAlarm[car2] = true;
    GameTextForPlayer(playerid, "~g~Alarm aktiviert", 1000,1);
    }
    else
    {
    GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car2,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
    MotorAlarm[car2] = false;
    GameTextForPlayer(playerid, "~r~Alarm deaktiviert", 1000, 1);
    }
    }
    }
    return 1;
    }

    Hallo, ich spiele gerade mit der SampQuery rum ( Die hier: http://www.em-creations.co.uk/?p=214 ) nur bei mir wird der Sever immer Offline angezeigt. Ich habe es schon mit größeren Server versucht ( Life Of German etc. ). Immer das selbe. Ich habe auch schon eine andere versucht. Code:


    ok, danke hat funzuniert. Nun zum 2 Problem. Wenn ich eine nachricht schreiben funzuniert es. Aber wenn ich noch eine nachricht schreiben möchte sollte die neuste nach oben stattdesen wird nur das neuste angezeigt.

    Hallo, ich möchte so was wie ein "Messages of Day" machen. Ein Admin kann news schreiben das klappt auch. Nur wenn ich die anzeigen möchte wird einfach garnix angezeigt. Code;


    hier wird es geladen:
    $query2 = mysql_query("SELECT ueberschrift,text FROM ucp_news ORDER BY ID DESC LIMIT 1"); //Wählt alle von der Tabelle User aus welche den Username haben die deinen Namen in dem du dich eingeloggt hast haben
    while($row = mysql_fetch_assoc($query2))
    {
    $uber = $row['ueberschrift'];
    $text = $row['text'];
    }


    und weiter unten also hier: wird es angezeigt was aber nicht gemacht wird.
    <div id="content">

    <h1 style="width:20%; margin:auto;"> Neuigkeiten </h1>
    <br>
    <h2 style="width:80%; margin:auto;"><?php $uber ?> <h2>
    <p style="width:80%; margin:auto; font-family:Arial; font-size:14px;">
    <?php $text ?>


    </p>

    </div>


    warum funzuniert das nicht ?

    Hallo, ich möchte ein samp client machen und dort wollte ich abfragen wie viele spieler momentan auf den Server sind. Gibt es eine sampQueryAPI für vb.net bzw. nicht für PHP ?