SA-MP Forums Archive
Y_ini - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_ini (/showthread.php?tid=507222)



Y_ini - SajtosPufi - 16.04.2014

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.


Re: Y_ini - park4bmx - 16.04.2014

code is needed !!!
how we know what system's your using...
you cant just combine to FS and hope they both work together.


Re: Y_ini - SajtosPufi - 16.04.2014

I think here is the error!

Quote:

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;
}




Re: Y_ini - Dziugsas - 16.04.2014

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.


Re: Y_ini - SajtosPufi - 17.04.2014

Yeah, this idea looks good, but my idea is easier to use. Can be solved in this way?