Jump to content

Recommended Posts

Posted
Il y a 1 heure, HyperStyledMouse a déclaré:

Hey! 

J'ai cherché partout pour essayer de comprendre cela, en me demandant si vous vouliez de l'aide. 

J'ai le code enable-clientside-cs.txt à la racine de ragemp, mais la boîte de connexion ne s'affiche toujours pas au début et ne fonctionne pas. J'ai juste un gars de Mime qui s'interroge dans la salle de départ avec le texte pour que F commence. Une idée de quoi regarder pour résoudre ce problème? Ou quelque chose que j'ai peut-être oublié d'inclure, j'ai parcouru tout votre document. 

Merci d'avance. 

 

Hello I have the same problem I'm blocking in the hotel room the f does not work

Posted
Il y a 12 heures, FieteGM a déclaré:

Bonjour,

J'ai le prochain problème.

Si je me connecte à mon serveur, cela ouvre l'écran de connexion, mais j'essaie d'enregistrer ou de me connecter, cela ne fonctionne pas.

zap hosting uses a database that is not version 8
Posted (edited)

Hello 

I found the problem my data base and 5.7.24 and not 8.0,

I can not find the nugget and libraries corresponding to my version of MySQL.

I'm blocking here without a solution

3 minutes ago, FieteGM said:

et comment puis-je obtenir une base de données pour moi par la version 8?

I do not have these I block here
Edited by bills
Posted
vor 7 Minuten schrieb RuiSwagger:

Readme.md dont teach you How to compile the WiredPlayers.csproj

Open the WiredPlayers-Client.sln and Right Click  on  WiredPlayers-Client and  Creat....

Posted
1 hour ago, FieteGM said:

Get some Help pls:

Console Log:

SyntaxError: Unexpected token )
    at new Script (vm.js:79:7)
    at createScript (vm.js:251:10)
    at Proxy.runInThisContext (vm.js:303:10)
    at Module._compile (internal/modules/cjs/loader.js:657:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)

 

My Script what do the Error: (it is in ./packages/YY/)

let mysql = require("mysql");

let connection = mysql.createConnection( {
    host: "localhost",
    user: "root",
    passwort: "",
    database: "login"
});

connection.connect(function(e) {
    if(e) {
        console.log("Es konnte keine datenbank verbindung hergestellt werden. SYCA BLJAD RUSH B" + e);
    }
    else
    {
        console.log("Es konnt eine Datenbank verbindung hergestellt werden. OMG JAAAAAAAAA");
    }
)};

                mp.events.addCommand("registrieren",(player,fullText,username,passwort) => {
                    if (username && passwort) {
                        connection.query("SELECT * FROM userdata WHERE name = ?",[username],function(ess,res) {
                            if (res.length > 0) {
                                player.outputChatBox("Der angegebene Name ist bereits vergeben!");
                            }
                            else
                            {
                        connection.query("SELECT * FROM userdata WHERE socialClub = ?",[player.socialClub],function(ess,res) {
                            if (res.length > 0) {
                                player.outputChatBox("Du hast bereits einen Account bei uns!");
                            }
                            else
                            {
                        connection.query("INSERT INTO userdata SET name = ?, passwort = ?, socialClub = ?",[username,passwort,player.socialClub],function(ess,res) {
                            if (!err) {
                                player.outputChatBox("Du hast dich erfolgreich Registriert!!! HYPE.");
                                setPlayerDataAfterLogin(player);
                            };
                        });
                    };
                });
            };
        });
    }
    else
    {
        player.outputChatBox("");
    };
});

    mp.events.addCommand("einloggen",(player,fullText,username,passwort) => {
        if (username && passwort) {
            connection.query("SELECT * FROM userdata WHERE name = ?, passwort = ?",[username,passwort],function(ess,res) {
                if (res.length > 0) {
                    player.outputChatBox("Du hast dich erfolgreich Eingeloggt, viel Spaß.");
                    setPlayerDataAfterLogin(player);
                }
                else
                {
                    player.outputCharBox("Die angegebene User/Passwort Kombination existiert nicht!");
                };
            });
        }
        else
        {
            player.outputChatBox("");
        };
});

function setPlayerDataAfterLogin(player) {
    connection.query("SELECT * FROM userdata WHERE socialClub = ?",[player.socialClub],function(err,res) {
        player.outputChatBox("ID: " + res[0].id);
    };
}):

 

And my Index.js : (also in ./packages/yy/)

require('./register_login.js')

 

... So i think i have no problems here but can anyone help me pls

This isn't even related to the gamemode, what's wrong with you?

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...