PDA

View Full Version : Y_ini


SajtosPufi
16/04/2014, 06:20 PM
Hi! I have a y_ini registration system, and I would like also to make a ban system, but when I did the Pawn Compilier is crashed. When I deleted a ban system the mode is ran without fail. I note the ban system is flawless! I would like to use at the same time the registration system and ban system! I would like to ask for your help, thank you in advance for answers. Sorry for my bad english. :)

park4bmx
16/04/2014, 06:53 PM
code is needed !!!
how we know what system's your using...
you cant just combine to FS and hope they both work together.

SajtosPufi
16/04/2014, 07:36 PM
I think here is the error!

forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Jelszo",PlayerInfo[playerid][pJelszo]);
INI_Int("Penz",PlayerInfo[playerid][pPenz]);
return 1;
}

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

forward LoadBanUser_data(playerid,name[],value[]);
public LoadBanUser_data(playerid,name[],value[])
{
INI_Int("BanIdo",PlayerInfo[playerid][pBanTime]);
INI_Int("BanPerm",PlayerInfo[playerid][pBanPerm]);
INI_String("BanAdmin", PlayerInfo[playerid][pBanAdmin], 20);
INI_String("Ok",PlayerInfo[playerid][pBanReason],100);
return 1;
}

stock UserBanPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playernam e));
format(string,sizeof(string),BAN,playername);
return string;
}

Dziugsas
16/04/2014, 09:49 PM
There is no need to create a file and saving system for a banned player just make a variable where you put if the player is banned or not and then when he connects just check if he is banned , if he is banned close the connection or something similar.

SajtosPufi
17/04/2014, 08:14 AM
Yeah, this idea looks good, but my idea is easier to use. Can be solved in this way?