16.09.2011, 16:51
First of all , Hi , i have a Registration FS , so , i creat a Folder in scriptfiles with the name : "users"
The Problem is whene i register , the infos doesn't save in "users" folder, i have this problem in a lot of downloaded FS, this is the way to the folder in my FS:
Please i need your Help(+1rep for any Helper)
The Problem is whene i register , the infos doesn't save in "users" folder, i have this problem in a lot of downloaded FS, this is the way to the folder in my FS:
PHP код:
public OnPlayerConnect(playerid)
{
format(file, 128, "/users/%s.ini", GetName(playerid));
GetPlayerIp(playerid, playerIP, 16);
TogglePlayerSpectating(playerid, 1);
if(!dini_Exists(file))
{
format(str, 128, "{1900FF}Welcome %s \n\nPlease {B31515}register your {FFFFFF}account", GetName(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Account Management", str, "Register", "Quit");
}
else
{
format(str, 128, "{1900FF}Welcome %s \n\nPlease {B31515}login to your {FFFFFF}account", GetName(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Account Management", str, "Login", "Quit");