[HELP] Need help. Don't know where the problem is
#1

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!
Reply
#2

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.
Reply
#3

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
Reply
#4

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

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

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
Reply
#7

You're Welcome =).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)