[HELP] Need help on this
#1

It compiles fine but when I join the server it crashes ://

http://pastebin.com/FJmmXw78

Help pls
Reply
#2

you got the Reg folder inside your Scriptfiles?
Reply
#3

Quote:
Originally Posted by XePloiT
Посмотреть сообщение
you got the Reg folder inside your Scriptfiles?
yes its not that, its right when I join the server it crashes , the dialogs wont show up and when I minimize/quit the server launcher is gone
Reply
#4

I'm not sure of the problem right off the bat. I'd suggest putting some debug lines in your OnPlayerConnect method to see exactly how far through your code it is getting:

pawn Код:
public OnPlayerConnect(playerid)
{
        format(file, 128, "/Reg/%s.ini", GetName(playerid));
        printf(file); // FIRST DEBUG LINE HERE
       
        if(dini_Exists(file))
        {
            printf("debug: file exists"); // SECOND DEBUG LINE HERE
            format(str, 128, "\nEnter your password", GetName(playerid));
            ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login to your account", str, "Login", "Quit");
            SendClientMessage(playerid, Green, "You have successfully logged in");
        }
        else if(!dini_Exists(file))
        {
            printf("debug: file does not exist"); // THIRD DEBUG LINE HERE
            SendClientMessage(playerid, Green, "%s is already registered login to your account");
            return 1;
        }
        {
            format(str, 128, "\nEnter a password", GetName(playerid));
            ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Register your account", str, "Register", "Quit");
        }
        return 1;
}
Run that and then check your server_log.txt to see which of the debug messages are printed. It might make the problem a bit more obvious!
Reply
#5

oke I got this [18:26:49] debug: file does not exist
that is the 3rd debug line? now how can I fix tihs problem ?
Reply
#6

bump
Reply
#7

no one
Reply
#8

help please
Reply
#9

omg no one, im starting to get angry ive been waiting answer long time now
Reply
#10

stop bumping your thread. Try replacing line 28 with
pawn Код:
format(file,128,"Reg/%s.ini",GetName(playerid));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)