@SLaYz Das dort was nicht, weiß ich auch.
Spaß bei Seite, Print bringt Null, er kommt nur: "Query: ", also kein Eintrag, bleibt einfach Leer.
@SLaYz Das dort was nicht, weiß ich auch.
Spaß bei Seite, Print bringt Null, er kommt nur: "Query: ", also kein Eintrag, bleibt einfach Leer.
@Douq Gesagt getan, Server-Log sagt mir nun: 1065 ; Query was empty ; OnUserCheck ;
@Douq
Bekomme leider einen Fehler beim Compilen.
C:\Users\**\Desktop\SA-MP Server\gamemodes\Script.pwn(279) : error 025: function heading differs from prototype
Fehler 1: public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
@datgame
Soweit eigentlich schon, schau hier mein Enum.
enum SpielerDatei
{
sID,
bool:sEingeloggt,
sName[MAX_PLAYER_NAME],
sLevel,
sBargeld
}
new sInfo[MAX_PLAYERS][SpielerDatei];
Moin Moin!
ich habe in MySQL R40 das Problem, das der Query nicht ausgeführt bzw. das der Public wird Ausgeführt.
Habe es schon mal Geprint, der Public wird einfach nicht Gestartet.
Zeige euch mal den Code.
public OnPlayerConnect(playerid)
{
ResetSpielerDatei(playerid);
if(!sInfo[playerid][sEingeloggt])
{
new query[128];
mysql_format(Handle, query, sizeof(query), "SELECT `id` FROM users WHERE `Spielername` = '%e'", sInfo[playerid][sName]);
mysql_pquery(Handle, query, "OnUserCheck", "d", playerid);
print("OnPlayerConnect - Complete");
}
return 1;
}
Der Print wird mir Angezeigt, aber der Print bei "OnUserCheck" zB nicht.
public OnUserCheck(playerid)
{
print("OnUserCheck - Now");
new rows;
cache_get_row_count(rows);
if(rows == 0)
{
print("dialogid");
ShowPlayerDialog(playerid, DIALOG_REGISTRATION, DIALOG_STYLE_PASSWORD, "Registration", "Registriere dich", "OK", "Nein");
return 1;
}
else
{
ShowPlayerDialog(playerid, DIALOG_EINLOGGEN, DIALOG_STYLE_PASSWORD, "Login", "Log dich ein", "OK", "Nein");
return 1;
}
print("OnUserCheck - End");
return 1;
}
Habe auch noch hier die MySQL Log für euch.
[16:21:33] [DEBUG] mysql_connect("127.0.0.1", "root", "*****", "samp_db", 0)
[16:21:33] [DEBUG] CHandleManager::Create(this=0x69c560, host='127.0.0.1', user='root', pass='****', db='samp_db', options=0x69d8c0)
[16:21:33] [INFO] Creating new connection handle...
[16:21:33] [DEBUG] CConnection::CConnection(this=0x6a1768, host='127.0.0.1', user='root', passw='****', db='samp_db', options=0x69d8c0)
[16:21:33] [DEBUG] CConnection::CConnection - new connection = 0x2912878
[16:21:33] [DEBUG] CConnection::CConnection(this=0x2a27020, host='127.0.0.1', user='root', passw='****', db='samp_db', options=0x69d8c0)
[16:21:33] [DEBUG] CConnection::CConnection - new connection = 0x38c00b8
[16:21:33] [DEBUG] CThreadedConnection::WorkerFunc(this=0x2a27020, connection=0x2a27020)
[16:21:33] [DEBUG] CThreadedConnection::CThreadedConnection(this=0x2a27020, connection=0x2a27020)
[16:21:33] [DEBUG] CConnectionPool::CConnectionPool(size=2, this=0x6a1728)
[16:21:33] [DEBUG] CConnection::CConnection(this=0x3ab7020, host='127.0.0.1', user='root', passw='****', db='samp_db', options=0x69d8c0)
[16:21:33] [DEBUG] CConnection::CConnection - new connection = 0x38c8b20
[16:21:33] [DEBUG] CThreadedConnection::WorkerFunc(this=0x3ab7020, connection=0x3ab7020)
[16:21:33] [DEBUG] CThreadedConnection::CThreadedConnection(this=0x3ab7020, connection=0x3ab7020)
[16:21:33] [DEBUG] CConnection::CConnection(this=0x3c44020, host='127.0.0.1', user='root', passw='****', db='samp_db', options=0x69d8c0)
[16:21:33] [DEBUG] CConnection::CConnection - new connection = 0x38d4bb0
[16:21:33] [DEBUG] CThreadedConnection::WorkerFunc(this=0x3c44020, connection=0x3c44020)
[16:21:33] [DEBUG] CThreadedConnection::CThreadedConnection(this=0x3c44020, connection=0x3c44020)
[16:21:33] [INFO] Connection handle with id '1' successfully created.
[16:21:33] [DEBUG] CHandleManager::Create - new handle = 0x68e7a0
[16:21:33] [DEBUG] mysql_errno(1)
[16:21:33] [DEBUG] CHandle::GetErrorId(this=0x68e7a0)
[16:21:33] [DEBUG] CConnection::GetError(this=0x6a1768, connection=0x2912878)
[16:21:33] [DEBUG] CHandle::GetErrorId - return value: true, error id: '0', error msg: ''
[16:22:18] [DEBUG] mysql_format(1, 0x02D6A5B0, 128, "SELECT `id` FROM users WHERE `Spielername` = '%e'")
[16:22:18] [DEBUG] mysql_pquery(1, "", "OnUserCheck", "d")
[16:22:18] [DEBUG] CCallback::Create(amx=0x29a36b8, name='OnUserCheck', format='d', params=0x2d6a598, param_offset=5)
[16:22:18] [DEBUG] CCallback::Create - callback index for 'OnUserCheck': 31
[16:22:18] [DEBUG] processing specifier 'd' with parameter index 0
[16:22:18] [DEBUG] retrieved and pushed value '0'
[16:22:18] [INFO] Callback 'OnUserCheck' set up for delayed execution.
[16:22:18] [DEBUG] created delayed callback with 1 parameter
[16:22:18] [DEBUG] CHandle::Execute(this=0x68e7a0, type=2, query=0x681428)
[16:22:18] [DEBUG] CConnectionPool::Queue(query=0x681428, this=0x6a1728)
[16:22:18] [DEBUG] CHandle::Execute - return value: true
[16:22:18] [DEBUG] CConnection::Execute(query=0x681428, this=0x3ab7020, connection=0x38c8b20)
[16:22:18] [DEBUG] CQuery::Execute(this=0x681428, connection=0x38c8b20)
[16:22:19] [DEBUG] CConnection::GetError(this=0x3ab7020, connection=0x38c8b20)
[16:22:19] [DEBUG] CCallback::Create(amx=0x29a36b8, name='OnQueryError', format='dsssd)
[16:22:26] [DEBUG] mysql_close(1)
[16:22:26] [DEBUG] CHandleManager::Destroy(this=0x69c560, handle=0x68e7a0)
[16:22:27] [DEBUG] CHandle::~CHandle(this=0x68e7a0)
[16:22:27] [DEBUG] CConnection::~CConnection(this=0x6a1768, connection=0x2912878)
[16:22:27] [DEBUG] CThreadedConnection::~CThreadedConnection(this=0x2a27020, connection=0x2a27020)
[16:22:27] [DEBUG] CThreadedConnection::WorkerFunc(this=0x2a27020, connection=0x2a27020) - shutting down
[16:22:27] [DEBUG] CConnection::~CConnection(this=0x2a27020, connection=0x38c00b8)
[16:22:27] [DEBUG] CConnectionPool::~CConnectionPool(this=0x6a1728)
[16:22:27] [DEBUG] CThreadedConnection::~CThreadedConnection(this=0x3c44020, connection=0x3c44020)
[16:22:27] [DEBUG] CThreadedConnection::WorkerFunc(this=0x3c44020, connection=0x3c44020) - shutting down
[16:22:27] [DEBUG] CConnection::~CConnection(this=0x3c44020, connection=0x38d4bb0)
[16:22:27] [DEBUG] CThreadedConnection::~CThreadedConnection(this=0x3ab7020, connection=0x3ab7020)
[16:22:27] [DEBUG] CThreadedConnection::WorkerFunc(this=0x3ab7020, connection=0x3ab7020) - shutting down
[16:22:27] [DEBUG] CConnection::~CConnection(this=0x3ab7020, connection=0x38c8b20)
Alles anzeigen
Hoffe einer von euch kann mir Helfen.
Möööp, Falsch Kaliber.
Problem lag an diese Doofen Runtime Dinger, habe so ein All In One Paket bei Chip gefunden, Geladen und Installiert dann ging es.
Guten Morgen zusammen,
ich habe das Problem, das bei mir das MySQL Plugin nicht Geladen wird. Habe das MysQL R40 und R41 schon Probiert.
Beim Compilen des Scripts keine Fehler, mit Nativecheck kommen Fehler, weil das MySQL Plugin ja nicht Geladen wird.
Fehler: [01:51:07] Error: Function not registered: 'mysql_close'
[01:51:07] Error: Function not registered: 'mysql_log'
[01:51:07] Error: Function not registered: 'mysql_connect'
[01:51:07] Error: Function not registered: 'mysql_errno'
Ich nutze Windows 10 und habe schon einige an Runtime dinger da neu Installiert und PC neu gestartet, bringt bis jetzt leider nichts!
@fnL
WTF ? Bei Mindfactory steht aber "Chipsatz: 1151", wollen die mich Rotzen? O.o
Dann geht mein ganzer Plan nicht auf.
Hast du eine Konfi. für um die 800€ - 1.000€ ?
Moin!
Ich suche ein Passendes Mainboard für den "Intel Xeon E3-1240v5" (siehe: http://www.mindfactory.de/prod…-So-1151-BOX_1014851.html )
Bevor die Frage kommt wieso die CPU und nicht den "I7 6700(K)", A: Ich übertakte nicht, B: Brauche ich keine Onboard Grafikkarte, kann mir so also ein wenig Geld Sparren.
Zieh mal den Ordner "YSI" in Pawno -> Include
So habe ich es getan und es hat Funktioniert!
Schick mir mal die Include, ich Probiere es mal eben bei mir aus!
Hast mal Pawno neu Gestartet? Hatte sowas auch mal, Neustart von Pawno hat mir geholfen.
Perfekt! Ich danke dir, klappt super.
Habe nun ein ganz anderes Problem, mein Script wird Geladen und Co, aber es wird keiner Funktion ausgeführt!
Egal welche, nicht mal die einfachste Funktion führt das Script aus.
public OnPlayerRequestClass(playerid, classid)
{
// *** Sonstiges ***
SetPlayerColor(playerid, -1);
ResetPlayerData(playerid);
// *** Spieler Login / Register ***
if(!sInfo[playerid][sEingeloggt])
{
new query[128];
mysql_format(Handle, query, 128, "SELECT `ID` FROM `spieler` WHERE `Name` = '%e'", sInfo[playerid][sName]);
mysql_pquery(Handle, query, "OnUserCheck", "d", playerid);
}
return 1;
}
Und er führt zB den pquery nicht aus.
forward OnUserCheck(playerid);
public OnUserCheck(playerid)
{
new string[256];
ClearPlayerChat(playerid);
if(cache_get_row_count() == 0)
{
format(string, 256, "{FFFFFF}\tHerzlich willkommen {00FF00}%s{FFFFFF}!\nEs gibt keinen Eintrag in der Datenbank mit deinem Spielernamen, solltest du schon einen Charakter besitzen, so klicke bitte auf 'Verlassen'", sInfo[playerid][sName]);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "{FFFFFF}Sensix Reallife - Registration", string, "Weiter", "Verlassen");
return 1;
}
else
{
format(string, 256, "{FFFFFF}\tHerzlich willkommen {00FF00}%s{FFFFFF}!\nEs gibt keinen Eintrag in der Datenbank mit deinem Spielernamen, solltest du schon einen Charakter besitzen, so klicke bitte auf 'Verlassen'", sInfo[playerid][sName]);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FFFFFF}Sensix Reallife - Einloggen", string, "Weiter", "Verlassen");
return 1;
}
}
Habt ihr eine Lösung dafür?
Hai,
ich wollte gerne das die MySQL Tabellen vom Script aus erstellt werden, jetzt möchte ich gerne wissen,
wie ich dies am besten tue.
Direkt in OnGameModeInit oder doch lieber mit einem Stock bzw Public?
Ich bin ein Spät Zünder, nun ja, auch ich bin nun Besitzer von GTA:V am PC.
Jetzt will ich gerne Online Spielen habe aber keinen der mit mir Spielen kann.
Jetzt wollte ich euch mal Fragen ob jemand von euch Bock hat und mich eventuell ein bissen Hochziehen kann?
Bin im Multiplayer der Totale Kack Affe, aber das wird glaub ich sehr Witzig!
Der Port wurde schon auf 8080 geändert aus dem Tutorial von @Jeffry was du Gepostet hattest.
//e
Der Größe Lappen Namens: Sonic Hedgehog hat das Problem gelöst, woran es lag? Ich habe keine Ahnung
Ich habe Hintergrund offen: Google Chrome, Skype, Spotify, Bandicam, TS und meinen Antiviren Schutz.
Könnte es an diesen Programmen liegen? Was ich aber nicht glaube, weil sofern ich die Programme alles Ausschalte, bleibt das Problem ebenfalls.
Starten tut sich nichts, er sagt mir da dann nur, wo ich XAMPP Installiert habe. auf "d:\programme\xampp".
@seegras Hab ich getan, und versucht die Dienste neu zu Starten, klappt leider ebenfalls nicht.
Problem bleibt das gleiche.