SA-MP Forums Archive
[HELP] Need help on this - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Need help on this (/showthread.php?tid=199409)



[HELP] Need help on this - xir - 15.12.2010

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

http://pastebin.com/FJmmXw78

Help pls


Re: [HELP] Need help on this - XePloiT - 15.12.2010

you got the Reg folder inside your Scriptfiles?


Re: [HELP] Need help on this - xir - 15.12.2010

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


Re: [HELP] Need help on this - Benjo - 15.12.2010

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!


Re: [HELP] Need help on this - xir - 16.12.2010

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 ?


Re: [HELP] Need help on this - xir - 19.12.2010

bump


Re: [HELP] Need help on this - xir - 21.12.2010

no one


Re: [HELP] Need help on this - xir - 23.12.2010

help please


Re: [HELP] Need help on this - xir - 25.12.2010

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


Re: [HELP] Need help on this - MaXSpeeD - 25.12.2010

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