#1

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.
Reply
#2

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

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

Reply
#4

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.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)