SA-MP Forums Archive
MYSQL accounts slaan niet op - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Nederlands/Dutch (https://sampforum.blast.hk/forumdisplay.php?fid=31)
+---- Thread: MYSQL accounts slaan niet op (/showthread.php?tid=406520)



MYSQL accounts slaan niet op - McFellow - 10.01.2013

Hallo,
Ik heb een probleem want de accounts slaan niet op in MYSQL
pawn Code:
stock MySQL_Register(playerid, passwordstring[])
{
    new query[200], pname[24], IP[16];
    GetPlayerName(playerid, pname, 24);
    GetPlayerIp(playerid, IP, 16);
    format(query, sizeof(query), "INSERT INTO playerdata (user, password, score, money, IP) VALUES('%s', SHA1('%s'), 0, 0, '%s', 0.0)", pname, passwordstring, IP);
    mysql_query(query);
    //is not a select statement. We can now send the
    //client a registration success message and set the
    //Login variable to 1.
    SendClientMessage(playerid, -1, "You have been registered on this server!");
    Logged[playerid] = 1; //Sets the login variable
    return 1;
}
Kan iemand mij misschien helpen? PS: Ik krijg geen errors bij het compilen