SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 07/09/2009, 06:11 AM   #1
_Vortex
Gangsta
 
Join Date: May 2009
Posts: 783
Reputation: 4
Default Reasons aren't showing

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
__________________
_Vortex is offline  
Old 07/09/2009, 07:00 AM   #2
NEW_IE
Big Clucker
 
Join Date: Jun 2008
Posts: 169
Reputation: 0
Default Re: Reasons aren't showing

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

Did you put those??
NEW_IE is offline  
Old 07/09/2009, 03:18 PM   #3
_Vortex
Gangsta
 
Join Date: May 2009
Posts: 783
Reputation: 4
Default Re: Reasons aren't showing

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

Did you put those??
yes.
__________________
_Vortex is offline  
Old 07/09/2009, 03:24 PM   #4
urkiefly101
Big Clucker
 
Join Date: Jun 2009
Posts: 119
Reputation: 0
Default Re: Reasons aren't showing

You are using the ladmin script? I think it can be disabled in the options, see if you have it enabled or not.
urkiefly101 is offline  
Old 07/09/2009, 03:45 PM   #5
Clavius
Big Clucker
 
Join Date: Feb 2008
Posts: 143
Reputation: 0
Default Re: Reasons aren't showing

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.
Clavius is offline  
Old 07/09/2009, 03:51 PM   #6
_Vortex
Gangsta
 
Join Date: May 2009
Posts: 783
Reputation: 4
Default Re: Reasons aren't showing

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.
__________________
_Vortex is offline  
Old 07/09/2009, 04:24 PM   #7
Zeex
Guest
 
Posts: n/a
Default Re: Reasons aren't showing

I just tested it and it works fine....
Do you get any messages while conpiling like "Stack/heap size: 16384 bytes; estimated max. ..." ?
 
Old 07/09/2009, 04:42 PM   #8
_Vortex
Gangsta
 
Join Date: May 2009
Posts: 783
Reputation: 4
Default Re: Reasons aren't showing

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.
__________________
_Vortex is offline  
Old 07/09/2009, 04:50 PM   #9
dice7
High-roller
 
Join Date: Apr 2009
Location: Slovenia
Posts: 2,200
Reputation: 22
Default Re: Reasons aren't showing

In all the sscanfs, use "z" insted of "s"
dice7 is offline  
Old 07/09/2009, 11:55 PM   #10
_Vortex
Gangsta
 
Join Date: May 2009
Posts: 783
Reputation: 4
Default Re: Reasons aren't showing

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.
__________________
_Vortex is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NPC Timout??????? What can be the reasons for it???? DJ-CJ89 Help Archive 1 13/06/2010 01:53 PM
Kick and Ban have no Reasons Manuel20 Help Archive 4 31/03/2010 09:34 AM
[Suggestion] Reasons LukeGFX General 8 17/01/2010 10:31 AM
Player disconnect reasons asteroid Help Archive 1 07/09/2009 02:54 PM
LVA problems for odd reasons Turricane Help Archive 7 20/06/2009 11:21 AM


All times are GMT. The time now is 10:33 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.