Kenix Posted December 29, 2010 Posted December 29, 2010 script not working the logic of the script: to crawl if the team "survivors"has run out of players then run a function endgame. tried to debug script errors no =( g_Root = getRootElement() function mapstart() local survivorsCount = 0 for i, player in ipairs(getPlayersInTeam(teamSurvivor)) do if survivorsCount ~= 0 then Endgame(teamzombie, true) end end end addEventHandler ( "onGamemodeMapStart", g_Root, mapstart ) http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Castillo Posted December 29, 2010 Posted December 29, 2010 not sure but maybe if you change: if survivorsCount ~= 0 then to: if survivorsCount == 0 then ? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Kenix Posted December 29, 2010 Author Posted December 29, 2010 (edited) not working properly, it must scan if that team is 0 players endgame and he immediately crawls edit: He has to check if 0 then. Edited December 29, 2010 by Guest http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Aibo Posted December 29, 2010 Posted December 29, 2010 this is nonsense, if you want to count players in team, then: g_Root = getRootElement() function mapstart() if countPlayersInTeam(teamSurvivor) == 0 then Endgame(teamzombie, true) end end addEventHandler ( "onGamemodeMapStart", g_Root, mapstart ) ?
Kenix Posted December 29, 2010 Author Posted December 29, 2010 (edited) not work edit: I do not want to count and compare. Edited December 29, 2010 by Guest http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Kenix Posted December 29, 2010 Author Posted December 29, 2010 debug check does not work. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Aibo Posted December 29, 2010 Posted December 29, 2010 not work edit: I do not want to count and compare. omg, then what do you want? ?
Kenix Posted December 29, 2010 Author Posted December 29, 2010 not work edit: I do not want to count and compare. omg, then what do you want? not work http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Castillo Posted December 30, 2010 Posted December 30, 2010 maybe tell us what doesn't works? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Kenix Posted December 30, 2010 Author Posted December 30, 2010 maybe tell us what doesn't works? script does not work no errors in debug Pamo error check == 0 EDIT: tried like this but did not get. g_Root = getRootElement() function MapStart() if countPlayersInTeam(teamSurvivor) and getAlivePlayers () == 0 then outputChatBox ( "1" ) Endgame(teamzombie, true) outputChatBox ( "2" ) end end addEventHandler ( "onGamemodeMapStart", g_Root, MapStart ) http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
DakiLLa Posted December 30, 2010 Posted December 30, 2010 Following by the "if the team "survivors"has run out of players": g_Root = getRootElement() function mapstart() if countPlayersInTeam( teamSurvivor ) == 0 then Endgame(teamzombie, true) end end addEventHandler ( "onGamemodeMapStart", g_Root, mapstart ) uh?
Kenix Posted December 30, 2010 Author Posted December 30, 2010 Following by the "if the team "survivors"has run out of players": g_Root = getRootElement() function mapstart() if countPlayersInTeam( teamSurvivor ) == 0 then Endgame(teamzombie, true) end end addEventHandler ( "onGamemodeMapStart", g_Root, mapstart ) uh? yeah right. DakiLLa http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Kenix Posted December 30, 2010 Author Posted December 30, 2010 accidentally looked out the window server and saw that when people do not have it on the server switches maps. but when people on the server script does not work. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Kenix Posted December 31, 2010 Author Posted December 31, 2010 how to fix it ? http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Castillo Posted December 31, 2010 Posted December 31, 2010 Stop triple-posting! wait for a f*** answer. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Aibo Posted December 31, 2010 Posted December 31, 2010 i doubt anyone understands the f*** question. ?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now