Server Crashes When I Type Login [password]
#7

Quote:
Originally Posted by Tee
Посмотреть сообщение
Suggestion, paste your login code and indicate line 101.
Line 101 is

Код:
dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]);
Login
Код:
public OnPlayerConnect(playerid)
{
    gPlayerLogged[playerid] = 0;
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name);
    if (!dini_Exists(file))
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Hi your not registered", "Welcome, your not registered mate, input your registration pw below", "Register", "Leave");
    }
    if(fexist(file))
    {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Hi your registered", "Fucken awesome mate, your registered :D. Inpute your pw below", "Login", "Leave");
    }
	return 1;
}
Quote:
Originally Posted by Too
Посмотреть сообщение
1. At the end of the first line put a ";"
2. Make sure PlayerInfo is defined at the top of the script.
There is already a ;
Reply


Messages In This Thread
Please Help I Get Some Errors! - by HayZatic - 07.07.2011, 04:24
Re: Server Crashes When I Type Login [password] - by Scenario - 07.07.2011, 04:36
Re: Server Crashes When I Type Login [password] - by HayZatic - 07.07.2011, 04:37
Re: Server Crashes When I Type Login [password] - by HayZatic - 07.07.2011, 05:29
Re: Server Crashes When I Type Login [password] - by Tee - 07.07.2011, 05:31
Re: Server Crashes When I Type Login [password] - by Too - 07.07.2011, 05:32
Re: Server Crashes When I Type Login [password] - by HayZatic - 07.07.2011, 05:37
Re: Server Crashes When I Type Login [password] - by HydraX - 07.07.2011, 05:42
Re: Server Crashes When I Type Login [password] - by HayZatic - 07.07.2011, 05:52
Re: Server Crashes When I Type Login [password] - by Tee - 07.07.2011, 06:21

Forum Jump:


Users browsing this thread: 2 Guest(s)