Answered Script Error? Help

Status
Not open for further replies.

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
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");
}
}

>
Please, Log in or Register to view URLs content!
<
 
Last edited:

P!X

Head Moderator
Staff member
Head Staff Team
Messages
408
Reaction score
577
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
479
Reaction score
241
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,322
Reaction score
752
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