help register - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help register (
/showthread.php?tid=602962)
help register -
kevi11 - 16.03.2016
Guys I made the registering system but every time I always asks me to create the character, i created the folder (Accounts)
Re: help register -
ATGOggy - 16.03.2016
And your code?
Re: help register -
kevi11 - 16.03.2016
PHP код:
new DBResult:dbresult, szQuery[128];
GetPlayerName(playerid, PlayerInfo[playerid][pUsername], MAX_PLAYER_NAME);
format(szQuery, sizeof(szQuery), "SELEZIONA * Da un account l'username = '%s'", DB_Escape(PlayerInfo[playerid][pUsername]));
dbresult = db_query(Database, szQuery);
if(db_num_rows(dbresult) > 0) ShowPlayerDialogEx(playerid, DIALOG_LOGIN, DIALOG_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(playerid, DIALOG_REGISTER, DIALOG_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?
Re: help register -
introzen - 18.03.2016
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.
Re: help register -
AndySedeyn - 18.03.2016
That query is not even SQL syntax. Take a look at the following wiki page:
https://sampwiki.blast.hk/wiki/Db_query