Jump to content

error please help


boro

Recommended Posts

Hi all i have problem i play stealth but map won't start me select team and skin and before is only black screen with chatbox

and in log is this error.

ERROR: [gamemodes]/[stealth]/stealth/stealthmain_server.lua:69: attempt to compare boolean with number

and this is stealthmain_server.lua

Line number On/Off | Expand/Contract | Select all

  
67 addEvent("dojoinTeam1",true ) 
68 function joinTeam1( source,theskin ) 
69  if (countPlayersInTeam(team2) - countPlayersInTeam(team1) > balanceamount) then 
70      outputChatBox("Can't join RED too many players", source, 255, 69, 0) 
71      triggerClientEvent(source,"doshowTeamWindow",source) 
72  else 
73      joinTeam(source, team1) 
74      myskin[source] = theskin 
75  end 
76 end 
77 addEventHandler ( "dojoinTeam1", getRootElement(), joinTeam1 ) 
78  addEvent("toScore", true) 
79 function addToScore(pla, cmd,cmds) 
80      setElementData ( source, "FPS", cmd) 
81      triggerClientEvent("onClientGamemodeMapStart", source, getMapName ()  ) 
82 end 
83 addEventHandler("toScore", getRootElement(), addToScore) 
84 addEvent("dojoinTeam2",true ) 
85 function joinTeam2( source, theskin ) 
86  if (countPlayersInTeam(team1) - countPlayersInTeam(team2) > balanceamount) then 
87      outputChatBox("Can't join BLUE too many players", source, 255, 69, 0) 
88      triggerClientEvent(source,"doshowTeamWindow",source) 
89  else 
90      joinTeam(source, team2) 
91      myskin[source] = theskin 
92  end 
93 end 
  

this is line 69

if (countPlayersInTeam(team1) - countPlayersInTeam(team2) > balanceamount) then

what is bad ?

please help thx.boro

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...