Host problem
#1

Well I need your help guys !, when I banned someone in my private server and then Unban him - WORK.

When I banned some one in the HOST , and then Unban him - Not working.

For some reason I just need to click "save" on the ini file and it's work.

So my question is , there is a way to save a HOST file with the PAWN ?

Please !

Reply
#2

You make absolutely no sense here, please explain further.
Reply
#3

Alright i'll try , the problem is so simple.. when I /ban someone it's okay.. BUT when I Unban him ,it's make me wired problem , the problem not in the /unban or in the /ban the problem it's that the host not saving the information, and I need to go into the PLAYER.INI , and "save" it , then it's work.. and really un ban the player,

I need to know how to make the host save the information I give him.
Reply
#4

Using BanEx? or another ban system?
Reply
#5

Quote:
Originally Posted by xF4Life
Посмотреть сообщение
Using BanEx? or another ban system?
The problem not in the Ban system , it is the host problem ! , for example when I unban..

"Banned = 0;"
it's put it on the player file , but it is not saving it , I need to go to the host and click "save" then the player unbanned.
Reply
#6

Show us your ban cmd.
Reply
#7

Try this:
Код:
CMD:unban(playerid,params[]) {
	new str[50], User[50], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,sizeof(name));
	if(sscanf(params, "s[50]", User)) return SendClientMessage(playerid, -1, "[Info]: /Unban {Name}");
	format(str,sizeof(str),"/Bans/%s.ini", User);
	return dUserSetINT(name).("Banned",0);
}
Reply
#8

Quote:
Originally Posted by xF4Life
Посмотреть сообщение
Using BanEx? or another ban system?
Quote:
Originally Posted by xF4Life
Посмотреть сообщение
Try this:
Код:
CMD:unban(playerid,params[]) {
	new str[50], User[50], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,sizeof(name));
	if(sscanf(params, "s[50]", User)) return SendClientMessage(playerid, -1, "[Info]: /Unban {Name}");
	format(str,sizeof(str),"/Bans/%s.ini", User);
	return dUserSetINT(name).("Banned",0);
}
This is my unban command , http://pastebin.com/EcNGVtdb
I still don't think the unban command is the problem , but you guys know batter then me that is for sure.
Reply
#9

Help please..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)