REGISTER SYS'
#1

Hey all, i want to make a simple register sys', here the code
Код:
//Credits to ******, Dracoblue and Kush.

#include <a_samp>
#include <YSI\y_ini>

#define PATH "/Users/%s.ini"

enum pInfo
{
    pPass,
}
new PlayerInfo[MAX_PLAYERS][pInfo];

forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Password",PlayerInfo[playerid][pPass]);
    return 1;
}

stock UserPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),PATH,playername);
    return string;
}

main()
{
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}
i want to add to here a dialogs when i register/login, and is good the code?!
Reply


Messages In This Thread
REGISTER SYS' - by Bug. - 09.12.2012, 15:37
Re: REGISTER SYS' - by Lz - 09.12.2012, 15:41
Re: REGISTER SYS' - by Bug. - 09.12.2012, 15:43
Re: REGISTER SYS' - by Konstantinos - 09.12.2012, 15:55
Re: REGISTER SYS' - by deb014 - 09.12.2012, 15:57
Re: REGISTER SYS' - by Lz - 09.12.2012, 16:06
Re: REGISTER SYS' - by deb014 - 09.12.2012, 16:14

Forum Jump:


Users browsing this thread: 1 Guest(s)