Reasons aren't showing
#1

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

dcmd(ban, 1, cmdtext);
dcmd(kick, 2, cmdtext);
dcmd(report, 3, cmdtext);

Did you put those??
Reply
#3

Quote:
Originally Posted by [vRP
LeeWasabi ]
dcmd(ban, 1, cmdtext);
dcmd(kick, 2, cmdtext);
dcmd(report, 3, cmdtext);

Did you put those??
yes.
Reply
#4

You are using the ladmin script? I think it can be disabled in the options, see if you have it enabled or not.
Reply
#5

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

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

I just tested it and it works fine....
Do you get any messages while conpiling like "Stack/heap size: 16384 bytes; estimated max. ..." ?
Reply
#8

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

In all the sscanfs, use "z" insted of "s"
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)