01.05.2017, 02:43
title**
after i restart the server through my control panel (not through a cmd /gmx and such as) im being forced to register after im registered already.
in my mysql server i can see that i have another ID created with the same UserName
for examle, im registering with the name Royal then i restart the server and im being forced to register again with the same name i registered already, with using another ID
here is my register sys
after i restart the server through my control panel (not through a cmd /gmx and such as) im being forced to register after im registered already.
in my mysql server i can see that i have another ID created with the same UserName
for examle, im registering with the name Royal then i restart the server and im being forced to register again with the same name i registered already, with using another ID
here is my register sys
Код:
TogglePlayerSpectating(playerid, 1); mysql_format(mysql, query, sizeof(query), "SELECT * FROM `users` WHERE `Name` = '%e'",pInfo[playerid][Name]); mysql_query(mysql, query); new rows = cache_num_rows(); if(rows == 1) { PlayAudioStreamForPlayer(playerid, "https://*******/HkZO0N"); ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_PASSWORD, "Login..","Welcome! Please Enter Your Password To Login","Login","Cancel"); } else if(rows == 0) { PlayAudioStreamForPlayer(playerid, "https://*******/bRXYbG"); ShowPlayerDialog(playerid, REGISTER_DIALOG, DIALOG_STYLE_INPUT, "Register..","Welcome! Please Enter Your Password To Register","Register","Cancel"); }