Y_INI Login system problem.
#1

Solved
Reply
#2

UserPath could be the problem. Could you show it please?

EDIT: I've never used Y_INI, so I could be wrong. But I'll do my best to help.
Reply
#3

As Denying said, please show us your userpath function.
Reply
#4

PHP код:
stock UserPath(playerid)
{
    new 
string[128],playername[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,playername,sizeof(playername));
    
format(string,sizeof(string),PATH,playername);
    return 
string;

Sorry for the delay!
Reply
#5

Your Userpath is setting all users to be saved as "PATH", playername is ignored.

If your "PATH" ends with a \ then do
PHP код:
format(string,sizeof(string),"%s%s",PATH,playername); 
If it does not, do
PHP код:
format(string,sizeof(string),"%s\%s",PATH,playername); 
Reply
#6

Quote:
Originally Posted by CmZxC
Посмотреть сообщение
Your Userpath is setting all users to be saved as "PATH", playername is ignored.

If your "PATH" ends with a \ then do
PHP код:
format(string,sizeof(string),"%s%s",PATH,playername); 
If it does not, do
PHP код:
format(string,sizeof(string),"%s\%s",PATH,playername); 

Thank you so much for taking the time to help me out. I'll try that out when I get home. Thanks again!
Reply
#7

Quote:
Originally Posted by CmZxC
Посмотреть сообщение
Your Userpath is setting all users to be saved as "PATH", playername is ignored.

If your "PATH" ends with a \ then do
PHP код:
format(string,sizeof(string),"%s%s",PATH,playername); 
If it does not, do
PHP код:
format(string,sizeof(string),"%s\%s",PATH,playername); 
Hey man, Thanks for taking the time to help. But now all that happens to the player files is they are saved as (%s%s.iniBlackboe) for example I tried both fixes you showed me and both do the same thing. I might add, I don't have trouble with players getting their own save files with their names. They just all inherit the cords and skin as the last person to log off.

Edit:
PHP код:
#define PATH "/Users/%s.ini" 
I found out why what you suggested didn't work, Completely forgot to include the define in the main topic.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)