09.12.2012, 15:37
Hey all, i want to make a simple register sys', here the code
i want to add to here a dialogs when i register/login, and is good 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; }