Helló, elégé régen írtam ide gondoltam írok mert elakadtam egy dologban.. felmegyek a szerverre és regisztrálok de valamiért betölti a réggi adataimat pedig töröltm FTP -rõl/ról a cuccokat a scriptfiles mappából.. nem tudom miért felmegyek regisztrálok majd úra vip és admin vagyok pedig nem kéne az legyek, amikor lelépek és újra feljövõk akkor meg már nem jó a jelszó amit beírtam.. valami ötlet?
public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) {
if ( dialogid == DIALOG_REGISTER ) {
if ( response ) {
if ( !strlen( inputtext ) || strlen( inputtext ) < 6 || strlen( inputtext ) > 32 ) {
format( mystring, sizeof mystring ,\"{BECBFC}Welcome, {95A3FF}%s{BECBFC}! \\n\\nThis name is not registered so please register with entering a password below.\\n\\n{C11B17}You should choose a strong password, between 6 and 32 characters.\", name );
ShowPlayerDialog( playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, \"Regisration step\", mystring, \"Register\", \"Quit\" );
SetPlayerInterior( playerid, 0 );
SetPlayerPos( playerid, 1742.83, -1862.27, 13.57 );
SetPlayerFacingAngle( playerid, 3.41 );
SetPlayerCameraPos( playerid, 1230.90, -1287.72, 254.17 );
SetPlayerCameraLookAt( playerid, 1227.04, -1289.05, 251.27 );
}
CreateAccount( playerid, inputtext );
return true;
} else {
SendClientMessage( playerid, -1, \"You have left the game.\");
Kick( playerid );
}
return true;
}
if ( dialogid == DIALOG_LOGIN ) {
GetPlayerName( playerid, name, sizeof name );
format( file, sizeof file, USERS_FILE, name );
if( response ) {
if ( !strlen( inputtext ) ) {
format( mystring, sizeof mystring ,\"{BECBFC}Welcome back, {95A3FF}%s{BECBFC}!\\n\\nPlease enter your password below to login to your account.\",name );
ShowPlayerDialog( playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, \"Login step\", mystring, \"Login\", \"Quit\" );
SetPlayerInterior( playerid, 0 );
SetPlayerPos( playerid, 1742.83, -1862.27, 13.57 );
SetPlayerFacingAngle( playerid, 3.41 );
SetPlayerCameraPos( playerid, 1230.90, -1287.72, 254.17 );
SetPlayerCameraLookAt( playerid, 1227.04, -1289.05, 251.27 );
}
new tmp = dini_Int( file, \"Password\" );
if(udb_hash( inputtext ) != tmp ) {
SendClientMessage( playerid, COLOR_RED, \"SERVER: You have entered a wrong password, try again.\" );
format( mystring, sizeof mystring ,\"{BECBFC}Welcome back, {95A3FF}%s{BECBFC}!\\n\\nPlease enter your password below to login to your account.\",name );
ShowPlayerDialog( playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, \"Login step\", mystring, \"Login\", \"Quit\" );
SetPlayerInterior( playerid, 0 );
SetPlayerPos( playerid, 1742.83, -1862.27, 13.57 );
SetPlayerFacingAngle( playerid, 3.41 );
SetPlayerCameraPos( playerid, 1230.90, -1287.72, 254.17 );
SetPlayerCameraLookAt( playerid, 1227.04, -1289.05, 251.27 );
}
else
{
LoadAccount( playerid, inputtext );
return true;
}
}
}