24.06.2012, 12:38
Thanks,you're the best..
All is Ok..but I have problem with login dialog..Is Ok..when I register on the server shows to me to login,and when I quit the game and I enter the server the login box does not appare..But my .ini file is saved in scriptfile
I use that:
This is positioned at the begin of OnPlayerRequestClass..
All is Ok..but I have problem with login dialog..Is Ok..when I register on the server shows to me to login,and when I quit the game and I enter the server the login box does not appare..But my .ini file is saved in scriptfile
I use that:
Код:
if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] == 1) { if (gPlayerAccount[playerid] == 1) { new loginstring[128]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"{FFFFFF}» Bine ai venit, {FFAF00}%s\n» {FFFFFF}Acest nume este inregistrat.\n» Poti sa te loghezi:",loginname); ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit"); } else { gPlayerAccount[playerid] = 0; new regstring[128]; new regname[64]; GetPlayerName(playerid,regname,sizeof(regname)); format(regstring,sizeof(regstring),"{FFFFFF}» Bun benit, {FFAF00}%s\n» {FFFFFF}Nu ai cont.\n» Te rog sa te inregistrezi:",regname); ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Register","Exit"); RegistrationStep[playerid] = 1; gPlayerAccount[playerid] = 1; } }