It is hard to say exactly how to fix your code as you have not provided much detail such as where pl is coming from but that is not too important, the way I would do this is if team.NumPlayers(TEAM_DEALER) > 0 thenĬhat.AddText(Color(255, 0, 0), "Someone is doing Weapon Dealer job you cant use the npc.Go and buy on weapon dealer!!")Īlso, you should learn to use prints to debug, using a print and checking console can help show how far the code is getting and can help show where the issue is. ![]() You can try refreshing the page, and if you’re still having problems, just try again later. ![]() In terms of working out how many people are doing the job you currently are doing nothing to tell the code to count the number of people on a team, gmod has a function for that Put Chromium in the main branch of Garrys Mod. ![]() You have done the if statement wrong, to check if something is equal to something else in an if statement you need to use = rather than = as using a single equals sign tells it you are setting data rather than checking data. To fix this you need to use the chromium branch for Garry's Mod. If its meant to exist then maybe you could help us out by creating it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |