SA-MP Forums Archive
[HELP] Need help. Don't know where the problem is - 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. Don't know where the problem is (/showthread.php?tid=78120)



[HELP] Need help. Don't know where the problem is - Ignas1337 - 17.05.2009

Well, at first I was writing a topic that I had a problem that server crashed once i connected, now it crashes if I type /register... Didn't try any other command.

Here's the script:

link

please help!


Re: [HELP] Need help. Don't know where the problem is - Badger(new) - 17.05.2009

well the first thing i saw was this line:
Код:
format(file, sizeof(file), "\\Users\\%s.ini", PlayerName(playerid));
i think it should be like this:
pawn Код:
format(file, sizeof(file), "\Users\%s.ini", PlayerName(playerid));
Files cause the server to crash a lot if they don't exist or the location isnt valid.


Re: [HELP] Need help. Don't know where the problem is - Ignas1337 - 17.05.2009

hmm.. ok. I thought that \ was just like a new line (\n) or something like it. I'll test that, thanks

now it's

Код:
error 027: invalid character constant



Re: [HELP] Need help. Don't know where the problem is - Ignas1337 - 17.05.2009

sorry for 2x post, i'll try using it without \users\



Re: [HELP] Need help. Don't know where the problem is - Badger(new) - 17.05.2009

try using GetPlayerName before the format and then use the PNAME or whatever you assigned the name too, see if that works.


Re: [HELP] Need help. Don't know where the problem is - Ignas1337 - 17.05.2009

I have used stock PlayerName(playerid) which returns the playerid. now it works, i have removed the folder and done some more adjustments. thanks for rplying


Re: [HELP] Need help. Don't know where the problem is - Badger(new) - 17.05.2009

You're Welcome =).