- 0
Problema baza de date
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
NuamNume
Dialog:DIALOG_REGISTER(playerid, response, listitem, inputtext[])
{
if(!response)
return Kick(playerid);
if(strlen(inputtext) < 8 || strlen(inputtext) > 64)
return Dialog_Show(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", "Type your desired password below:\n{AFAFAF}Numarul de caractere trebuie sa fie format din 8 - 64.", "Register", "Cancel");
format(PlayerInfo[playerid][pName], 24, GetPlayerNameEx(playerid));
format(PlayerInfo[playerid][pPassword], 128, inputtext);
gQuery[0] = (EOS);
mysql_format(SQL, gQuery, sizeof gQuery, "INSERT INTO `users` (Name, Password, RegisterDate, LastLogin) VALUES ('%e', '%e', '%e', '%e')", GetPlayerNameEx(playerid), inputtext, GetDateTime(), GetDateTime());
inline CheckSQLID()
{
PlayerInfo[playerid][pSQLID] = cache_insert_id();
printf("New account: %s (%d).", GetPlayerNameEx(playerid), playerid);
return true;
}
mysql_pquery_inline(SQL, gQuery, using inline CheckSQLID, "");
Dialog_Show(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "E-mail", "Scrie mai jos adresa ta de e-mail:", "Select", "Cancel");
return true;
}
Nu am erori, dar dupe ce ma inregistrez si ma duc in baza de date nu se salveaza nimic...
habar nu am de ce
Daca ma poate ajuta cineva intr-o ora de preferat as fii recunoscator..
Edit: am pus in alta baza gen acolo la mysql_connect si dupa a mers.. nush ce are
Edited by NuamNume24 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now