jBan problem
#1

Everytime I use jBan(player_banned,banning_player, reason[], time = 0); (0 = FOREVER)
.......EXAMPLE: jBan(playerid,"Anti-Cheat","Ban-Evading",0)
I get this error: error 035: argument type mismatch (argument 2)

It only happens when I have the jBan function in it.
Reply
#2

Ask it on JBan FS topic?
Reply
#3

.... You need to use the params correctly..

jBan(player_banned,banning_player, reason[], time = 0);

Player banned, Banning player, reason, time
Reply
#4

Quote:
Originally Posted by PrawkC
Посмотреть сообщение
.... You need to use the params correctly..

jBan(player_banned,banning_player, reason[], time = 0);

Player banned, Banning player, reason, time
I did that but it failed.
Reply
#5

Quote:
Originally Posted by Jeroen52
Посмотреть сообщение
Everytime I use jBan(player_banned,banning_player, reason[], time = 0); (0 = FOREVER)
.......EXAMPLE: jBan(playerid,"Anti-Cheat","Ban-Evading",0)
I get this error: error 035: argument type mismatch (argument 2)

It only happens when I have the jBan function in it.
jBan(playerid, 0, "Anti-Cheat - Ban-Evading",0); - I think you meant this.
Reply
#6

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
jBan(playerid, 0, "Anti-Cheat - Ban-Evading",0); - I think you meant this.
Thanks! But when I try to convert the permanent ban to a chooseable tempban it fails with an Argument 4.
I try to do it like /adban (ID) (Reason) (Time) and time is btime and it runs on dcmd, how can I configure it that it inputs the number correctly?
Reply
#7

Quote:
Originally Posted by Jeroen52
Посмотреть сообщение
Thanks! But when I try to convert the permanent ban to a chooseable tempban it fails with an Argument 4.
I try to do it like /adban (ID) (Reason) (Time) and time is btime and it runs on dcmd, how can I configure it that it inputs the number correctly?
Okay now I have temporarly fixed this by putting the ban timer to permanently and got 0 errors, but when I try to start the GM I get this [00:04:14] Script[gamemodes/SFCRRPG.amx]: Run time error 19: "File or function is not found"
And my GM is not loading properly.
EDIT: The jBan.inc is the cause of the Run time error, I will re-read it and if I don't respond to it when you read it please search an answer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)