help register
#1

Guys I made the registering system but every time I always asks me to create the character, i created the folder (Accounts)
Reply
#2

And your code?
Reply
#3

PHP код:
new DBResult:dbresultszQuery[128];
    
GetPlayerName(playeridPlayerInfo[playerid][pUsername], MAX_PLAYER_NAME);
    
format(szQuerysizeof(szQuery), "SELEZIONA * Da un account l'username = '%s'"DB_Escape(PlayerInfo[playerid][pUsername]));
    
dbresult db_query(DatabaseszQuery);
    if(
db_num_rows(dbresult) > 0ShowPlayerDialogEx(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORD"{FF0000}"SERVER_NAME" - Autenticazione""{FFFFFF}Benvenuto in "SERVER_NAME".\nSi prega di inserie la password per entrare nel server.""Logga""Esci");
    else 
ShowPlayerDialogEx(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT"{00FF00}"SERVER_NAME" - Autenticazione""{FFFFFF}Benvenuto "SERVER_NAME".\nInserisci una password da te desiderata per creare l'account.""Registrati""Esci");
    
db_free_result(dbresult);
    return 
1
This?
Reply
#4

Please do not use SQL if you're not comfortable with the language. You're not going to get free codes from this forum if you use a language that you don't even know yourself. Also, when posting stuff on the forums, translating the text to english would be great to grant more understanding to the people trying to help you.
Reply
#5

That query is not even SQL syntax. Take a look at the following wiki page: https://sampwiki.blast.hk/wiki/Db_query
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)