Answered Script Error? Help

Status
Not open for further replies.

candy

G59 Terrorist
Staff member
Donator
Messages
1,327
Reaction score
763
Points
973
Im honestly not sure about this error. I've seen the errors where I forget to added the function name or something, but not this

Too Many parameters: "kick" with 2 parameters
Code:
kickAllBots()
{
foreach(player in level.players)
{ if(isDefined(player.pers["isBot"])&&player.pers["isBot"])kick(playergetEntityNumber(),"EXE_PLAYERKICKED");
}
}

>
You do not have permission to view link Log in or register now.
<
 
Last edited:

P!X

Head Moderator
Staff member
Head Staff Team
Messages
408
Reaction score
590
Points
878
i had this too, it showed me that error but it turned out that it was unknown function
maybe its the same for you :smile:

Too Many parameters: "kick" with 2 parameters for example something like this(if im false pls tell me guys :smile:):
mainFunction()
{
self thread testFunction("Parameter 1","Parameter 2","Parameter 3");//3 are too much
}

testFunction(para1,para2)
{
self iprintln(para1);
self iprintln(para2);
}
 

Inactive Account

Old CCM Member
Premium Member
Messages
480
Reaction score
240
Points
913
i had this too, it showed me that error but it turned out that it was unknown function
maybe its the same for you :smile:

Too Many parameters: "kick" with 2 parameters for example something like this(if im false pls tell me guys :smile:):
You have said what I said with no read my reply xD
You are not false :tonguewink:

Candy,add a kick function(basic kick function but add the Bots detection)
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,327
Reaction score
763
Points
973
i had this too, it showed me that error but it turned out that it was unknown function
maybe its the same for you :smile:

Too Many parameters: "kick" with 2 parameters for example something like this(if im false pls tell me guys :smile:):
Yes! Correct
 
Status
Not open for further replies.
Top