SA-MP Forums Archive
Please Help - 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)
+--- Thread: Please Help (/showthread.php?tid=541642)



Please Help - AYOUYOU - 13.10.2014

Guys Why he Don't Work i have add in Scriptifles Player But he don't Work .
Server Code
Код:
[06:13:04] Incoming connection: 41.137.23.18:59198
[06:13:05] [join] Ayouyou has joined the server (0:41.137.23.18)
[06:13:09] *** YSI Error: INI_Open could not find or create file Players/Ayouyou.ini
[06:13:50] *** YSI Error: INI_Open could not find or create file Players/Ayouyou.ini
[06:13:50] [part] Ayouyou has left the server (0:1)

+rep For Help


Re: Please Help - Mamal75 - 13.10.2014

i have this problem too
after update my YSI files and problem not fixed yet
my server is down
please help about this problem


Re: Please Help - YanLanger - 13.10.2014

you got that #define path/user/%.ini or something ye?


Re : Re: Please Help - AYOUYOU - 13.10.2014

i have this
Код:
#define Player_File "Players/%s.ini"



Re: Please Help - YanLanger - 13.10.2014

hmm try this ain't sure it will work..

PHP код:
#define PATH "players/%s.ini" 



Re: Please Help - YanLanger - 13.10.2014

btw what tutorial you made that? kush's ?


Re : Re: Please Help - AYOUYOU - 13.10.2014

Код:
D:\Documents and Settings\Ay0uB\Bureau\Server X1tReme Stunting\pawno\include\YSI\..\YSI_Storage\y_ini.inc(206) : fatal error 100: cannot read from file: "..\amx\os"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Please Help - YanLanger - 13.10.2014

This is login/register ye?

What tutorial u got it from ?


Re : Re: Please Help - AYOUYOU - 13.10.2014

When i have add this i Get
Код:
#define PATH "players/%s.ini"
Код:
D:\DOCUME~1\Ay0uB\Bureau\NOUVEA~2\GAMEMO~1\X1treme.pwn(102) : warning 201: redefinition of constant/macro (symbol "PATH")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.



Re: Please Help - dominik523 - 13.10.2014

Replace your macro command with this. It works.
Код:
stock RPN(playerid)
{
	new name[MAX_PLAYER_NAME+1];
	GetPlayerName(playerid, name, sizeof(name));
	return name;
}

stock Path(playerid)
{
    new str[35];
    format(str, sizeof(str), "Users/%s.ini", RPN(playerid));
    return str;
}
Did you create "players" map in your scriptfiles map?