17.03.2014, 18:19
Dear Guys and Girls,
I'm facing a huge problem. In the beginning my players can register and login without problems, but after some time (1 day) players have to register again, while the player file exists. I don't know how or why?
In my opinion nothing changed.
This is the script I'm using:
Under
public OnPlayerConnect(playerid)
{
I have:
Under
public OnPlayerRequestClass(playerid, classid)
{
I have:
When I restart the server again, everything works fine. Does anyone know what's wrong?
I'm facing a huge problem. In the beginning my players can register and login without problems, but after some time (1 day) players have to register again, while the player file exists. I don't know how or why?
In my opinion nothing changed.
This is the script I'm using:
Under
public OnPlayerConnect(playerid)
{
I have:
Код:
GetPlayerName(playerid, string, sizeof(string)); format(string, sizeof(string), "%s.ini", PlayerName(playerid)); if(dini_Exists(string)) // This will check if the dini exists. returns true if exists. { gPlayerAccount[playerid] = 1; return 1; } else { gPlayerAccount[playerid] = 0; return 1; }
public OnPlayerRequestClass(playerid, classid)
{
I have:
Код:
if(gPlayerLogged[playerid] == 0) { switch(gPlayerAccount[playerid]) { case 0: DisplayDialogForPlayer(playerid, 2); //register case 1: DisplayDialogForPlayer(playerid, 1); //login } }