Reasons aren't showing -
_Vortex - 07.09.2009
Hello, the reasons for my /ban, /kick, and /report are not working. I don't know what the problem is, but hopefully someone can help
Here's the commands:
http://pastebin.com/f7cb3747f
Re: Reasons aren't showing -
NEW_IE - 07.09.2009
dcmd(ban, 1, cmdtext);
dcmd(kick, 2, cmdtext);
dcmd(report, 3, cmdtext);
Did you put those??
Re: Reasons aren't showing -
_Vortex - 07.09.2009
Quote:
Originally Posted by [vRP
LeeWasabi ]
dcmd(ban, 1, cmdtext);
dcmd(kick, 2, cmdtext);
dcmd(report, 3, cmdtext);
Did you put those??
|
yes.
Re: Reasons aren't showing -
urkiefly101 - 07.09.2009
You are using the ladmin script? I think it can be disabled in the options, see if you have it enabled or not.
Re: Reasons aren't showing -
Clavius - 07.09.2009
Quote:
Originally Posted by [vRP
LeeWasabi ]
dcmd(ban, 1, cmdtext);
dcmd(kick, 2, cmdtext);
dcmd(report, 3, cmdtext);
Did you put those??
|
correctly, those look like this:
dcmd(ban, 3, cmdtext);
dcmd(kick, 4, cmdtext);
dcmd(report, 6, cmdtext);
and in the kick and ban command, you need to put the
giveplayerid == playerid
check after getting the command parameters with sscanf, otherwise, giveplayerid will always be 0.
Re: Reasons aren't showing -
_Vortex - 07.09.2009
Quote:
Originally Posted by urkiefly101
You are using the ladmin script? I think it can be disabled in the options, see if you have it enabled or not.
|
I'm using my own script.
Quote:
Originally Posted by player007
Quote:
Originally Posted by [vRP
LeeWasabi ]
dcmd(ban, 1, cmdtext);
dcmd(kick, 2, cmdtext);
dcmd(report, 3, cmdtext);
Did you put those??
|
correctly, those look like this:
dcmd(ban, 3, cmdtext);
dcmd(kick, 4, cmdtext);
dcmd(report, 6, cmdtext);
and in the kick and ban command, you need to put the
giveplayerid == playerid
check after getting the command parameters with sscanf, otherwise, giveplayerid will always be 0.
|
I'm talking about the reason it shows "Name has been kicked by admin Name Reason:" when I put /kick id Reasonhere.
Re: Reasons aren't showing - Zeex - 07.09.2009
I just tested it and it works fine....
Do you get any messages while conpiling like "Stack/heap size: 16384 bytes; estimated max. ..." ?
Re: Reasons aren't showing -
_Vortex - 07.09.2009
Quote:
Originally Posted by ZeeX
I just tested it and it works fine....
Do you get any messages while conpiling like "Stack/heap size: 16384 bytes; estimated max. ..." ?
|
I dont get any errors. It doesnt show the reason when someones report. for example
player types > /report 4 health hacking
Returns to admins > Player has reported Player reason:
it doesn't show the reason.
Re: Reasons aren't showing -
dice7 - 07.09.2009
In all the sscanfs, use "z" insted of "s"
Re: Reasons aren't showing -
_Vortex - 07.09.2009
Quote:
Originally Posted by dice7
In all the sscanfs, use "z" insted of "s"
|
Now it shows the name, admin name, and reason as z.