Answered Script Error? Help

Status
Not open for further replies.

candy

G59 Terrorist
Staff member
Donator
Messages
1,333
Reaction score
769
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
407
Reaction score
583
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
505
Reaction score
262
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,333
Reaction score
769
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