Beiträge von Dark Leary

    Ich finde es nicht so toll da es alles nicht von euch gemacht wurde, es ist einfach nur das City of Raluno script und dies wurde veröffentlicht.
    aber ich werde es einmal testen.


    /e ich empfehle den server nicht.
    er ist genau gleich, mit den gleichen Buggs, wo ich auch damals drauf gespielt hatte....



    btw. viel glück euch trotzdem

    Hi ich bin nun fertig mit den MySQL umschreiben es fehlt nurnoch MySQL tabelle erstellen....
    ich habe am ende von tutorial einen link gesehen der was das anzeigt:
    http://pastebin.com/QVHeTat6
    DROP TABLE IF EXISTS `accounts`;
    CREATE TABLE `accounts` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `Name` VARCHAR(24) NOT NULL,
    `Passwort` VARCHAR(128) NOT NULL,
    `Level` INT(11) NOT NULL DEFAULT '1',
    `Geld` INT(11) NOT NULL DEFAULT '0',
    `Kills` INT(11) NOT NULL DEFAULT '0',
    `Tode` INT(11) NOT NULL DEFAULT '0',
    `Health` FLOAT NOT NULL DEFAULT '100',
    PRIMARY KEY (`id`)
    ) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;


    ich glaube, das ist das, womit ich eine Tabelle erstelle, nur wo in script muss das hin?

    Hi ich bekomme massig errors, ich wollte meinen Script auf MySQL umschreiben und bin gerade bei dem LoadPlayer stock
    nun geht aber mysql_GetInt nicht...


    Code
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(10649) : error 017: undefined symbol "mysql_GetInt"
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(10650) : error 017: undefined symbol "mysql_GetInt"
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(10651) : error 017: undefined symbol "mysql_GetInt"
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(10652) : error 017: undefined symbol "mysql_GetInt"
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(10653) : error 017: undefined symbol "mysql_GetInt"
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(10654) : error 017: undefined symbol "mysql_GetInt"
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(10655) : error 017: undefined symbol "mysql_GetInt"



    PlayerInfo[playerid][pJailtime] = mysql_GetInt("accounts", "Jailtime", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pWanted] = mysql_GetInt("accounts", "Wanteds", "Geschlecht", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pTot] = mysql_GetInt("accounts", "Gestorben", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pTx] = mysql_GetFloat("accounts", "PTX", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pTy] = mysql_GetFloat("accounts", "PTY", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pTz] = mysql_GetFloat("accounts", "PTZ", "Name", PlayerInfo[playerid][pName]);


    ich weiss nicht wieso.. ich benutze dieses Tutorial:
    MySQL (Installation, Zugriff, Einstellungen, Login & Register Beispiel)By maddin

    Ich habe mal bei XAMPP gestarted da kommt dan das:


    Code
    20:44:16  [code=sql] 	Attempting to start MySQL app...
    20:44:16  [code=sql] 	Status change detected: running
    20:44:16  [code=sql] 	Status change detected: stopped
    20:44:16  [code=sql] 	Error: MySQL shutdown unexpectedly.
    20:44:16  [code=sql] 	This may be due to a blocked port, missing dependencies, 
    20:44:16  [code=sql] 	improper privileges, a crash, or a shutdown by another method.
    20:44:16  [code=sql] 	Check the "/xampp/mysql/data/mysql_error.log" file
    20:44:16  [code=sql] 	and the Windows Event Viewer for more clues

    Hi... wieso wird mein tacho nicht angezeigt..
    ich habe alles gemacht..


    Code beim anzeigen:

    if(newstate == PLAYER_STATE_DRIVER)
    {
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {


    }
    else
    {
    TextDrawShowForPlayer(playerid,Tacho[playerid]);
    TextDrawShowForPlayer(playerid,Tachot0);
    TextDrawShowForPlayer(playerid,Tachot1);
    TextDrawShowForPlayer(playerid,Tachot2);
    TextDrawShowForPlayer(playerid,Tachot3);
    IsAnFracCar(playerid);
    }
    }


    if(oldstate == PLAYER_STATE_DRIVER)
    {
    TextDrawHideForPlayer(playerid,Tachot0);
    TextDrawHideForPlayer(playerid,Tachot1);
    TextDrawHideForPlayer(playerid,Tachot2);
    TextDrawHideForPlayer(playerid,Tachot3);
    TextDrawHideForPlayer(playerid,Tacho[playerid]);
    }
    das habe ich bei OnPlayerStateChange
    aber irgentwie wird es nicht angezeigt..

    PHP
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\pawno\include\m_tacho.inc(108) : error 055: start of function body without function header
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\pawno\include\m_tacho.inc(109) : error 010: invalid function or declaration
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\pawno\include\m_tacho.inc(113) : error 010: invalid function or declaration
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\pawno\include\m_tacho.inc(176) : warning 235: public function lacks forward declaration (symbol "Tachometer")
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(624) : error 021: symbol already defined: "Motor"
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(5035) : error 021: symbol already defined: "Beavis_OnPlayerConnect"
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(5635) : error 025: function heading differs from prototype
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(5864) : error 021: symbol already defined: "ocmdOnPlayerCommandText"
    C:\Users\Dominik Binder\Desktop\Desktop\Deluxe Reallife\gamemodes\Deluxe.pwn(7416) : error 025: function heading differs from prototype


    obwohl ich oben im include:
    #if defined _mtacho_included
    #endinput
    #endif
    #define _mtacho_included


    und unten


    #if defined _ALS_OnPlayerStateChange
    #undef OnPlayerStateChange
    #else
    #define _ALS_OnPlayerStateChange
    #endif
    #define OnPlayerStateChange Mysterio_OnPlayerConnect



    #if defined _ALS_OnGameModeInit
    #undef OnGameModeInit
    #else
    #define _ALS_OnGameModeInit
    #endif
    #define OnGameModeInit Mysterio_OnGameModeInit



    #if defined _ALS_OnPlayerKeyStateChange
    #undef OnPlayerKeyStateChange
    #else
    #define _ALS_OnPlayerKeyStateChange
    #endif
    #define OnPlayerKeyStateChange Mysterio_OnPlayerKeyStateChange



    #if defined _ALS_OnGameModeExit
    #undef OnGameModeExit
    #else
    #define _ALS_OnGameModeExit
    #endif
    #define OnGameModeExit Mysterio_OnGameModeExit


    #if defined _ALS_OnVehicleSpawn
    #undef OnVehicleSpawn
    #else
    #define _ALS_OnVehicleSpawn
    #endif
    #define OnVehicleSpawn Mysterio_OnVehicleSpawn


    #if defined _ALS_OnPlayerDisconnect
    #undef OnPlayerDisconnect
    #else
    #define _ALS_OnPlayerDisconnect
    #endif
    #define OnPlayerDisconnect Mysterio_OnPlayerDisconnect


    habe.. darum verstehe ich nicht, wieso diese errors kommen

    Habe es jetzt so gemacht:


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    if(!IsPlayerConnected(playerid)) return 1;
    new carid = vehicleid;
    for(new v=0; v<MAX_VEHICLES; v++)
    {
    if(carid == LSPD[v])
    {
    if(!IsACop(playerid)) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.") & 1;
    }
    if(carid == fwcar[v])
    {
    if(!IsAFw(playerid)) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.") & 1;
    }
    if(carid == oAmt[v])
    {
    if(PlayerInfo[playerid][pLeader] != 4||PlayerInfo[playerid][pMember] != 4) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.") & 1;
    }
    if(carid == SpedCars[v])
    {
    if(PlayerInfo[playerid][pLeader] != 5||PlayerInfo[playerid][pMember] != 5) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.") & 1;
    }
    if(carid == TbCar[v])
    {
    if(PlayerInfo[playerid][pLeader] != 6||PlayerInfo[playerid][pMember] != 6) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.") & 1;
    }
    if(carid == WccCar[v])
    {
    if(PlayerInfo[playerid][pLeader] != 7||PlayerInfo[playerid][pMember] != 7) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.") & 1;
    }
    if(carid == DilliCar[v])
    {
    if(PlayerInfo[playerid][pLeader] != 8||PlayerInfo[playerid][pMember] != 8) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.") & 1;
    }
    if(carid == Bauarbcar[v])
    {
    if(PlayerInfo[playerid][pJob] != 1) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.") & 1;
    }
    if(carid == Muelcar[v])
    {
    if(PlayerInfo[playerid][pJob] != 2) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.") & 1;
    }
    if(carid == Gabel[v])
    {
    if(PlayerInfo[playerid][pJob] != 3) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.") & 1;
    }
    if(carid == Strasse[v])
    {
    if(PlayerInfo[playerid][pJob] != 4) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.") & 1;
    }
    }
    return 1;
    }


    geht aber immernochnicht

    Hi ich habe halt gemacht das man nicht mit Fraktions autos fahren kann...
    aber irgentwie geht das nicht...


    ich habe einen stock gemacht ich poste aus anderen gründen nur den anfang.


    stock IsAnFracCar(playerid)
    {
    new carid = GetPlayerVehicleID(playerid);
    if(IsPlayerConnected(playerid))
    {
    for(new v=0; v<MAX_VEHICLES; v++)
    {
    if(carid == LSPD[v])
    {
    if(IsACop(playerid)) { return 1; }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, Rot, "Du hast keinen Schlüssel für dieses Auto.");
    }
    return 1;
    }

    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == TotenKopf[playerid])
    {
    SendClientMessage(playerid,Rot,"Text");
    }
    if(pickupid == zettel3)
    {
    ShowPlayerDialog(playerid,DIALOG_ZETTEL3,DIALOG_STYLE_MSGBOX,"Text","Text","JA","NEIN");
    }
    if(pickupid == zettel2)
    {
    ShowPlayerDialog(playerid,DIALOG_ZETTEL2,DIALOG_STYLE_MSGBOX,"Text","Text","JA","NEIN");
    }
    if(pickupid == sfitein)
    {
    SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,225.6465,181.1762,1003.0313);
    SetPlayerFacingAngle(playerid,178.5904);
    SetPlayerVirtualWorld(playerid,0);
    }
    return 1;
    }