Hey,
ich habe Probleme bei der INstallation von mysql, besser gesagt beim Register und Login System...
Hier mein Error:
Das habe ich oben:
#include <a_mysql>
C:\Users\Robin\Desktop\SAMP-Server\gamemodes\funserver2012.pwn(8107) : error 017: undefined symbol "Query"
C:\Users\Robin\Desktop\SAMP-Server\gamemodes\funserver2012.pwn(8107) : error 017: undefined symbol "Query"
C:\Users\Robin\Desktop\SAMP-Server\gamemodes\funserver2012.pwn(8107) : error 029: invalid expression, assumed zero
C:\Users\Robin\Desktop\SAMP-Server\gamemodes\funserver2012.pwn(8107) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Und hier die Zeilen:
if(dialogid == MYSQL_DIALOG_REGISTER)
{
if(strlen(inputtext) == 0)
{
ShowPlayerDialog(playerid,MYSQL_DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Register - Enter your password","You are about to register a new account! Please choose the password for it!","Register!","");
}
else
{
new EscapedText[60];
mysql_real_escape_string(inputtext, EscapedText);
format(Query,sizeof(Query),"INSERT INTO `Users` (Username,Password,Money) VALUES ('%s','%s,'0')",Spielername(playerid),EscapedText);
mysql_query(Query);
SendClientMessage(playerid,FARBE_GRÜN,"You have been successfully registered!");
GivePlayerMoney(playerid,5000);
SetPlayerScore(playerid,100);
}
}
if(dialogid == MYSQL_DIALOG_LOGIN)
{
if(strlen(inputtext) == 0)
{
ShowPlayerDialog(playerid,MYSQL_DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register - Enter your password","You are about to register a new account! \nPlease choose the password for it! \n","Register!","");
}
else
{
LoginPlayer(playerid,inputtext);
}
}
Vieleicht kann mir ja jemand Helfen
Ich gucke bei diesem Tutorial, aber da hat er es auch so -.-
http://forum.sa-mp.com/showthread.php?t=305994