|
| 14 Nov 2017 03:06 PM |
| I used for i, v in pairs to get the strings in a table. If the players ID doesn't match one of the strings in the table, then they die. The problem is is that they will die anyways because their ID isn't equal to all of the strings in the table. Is there a way I can avoid them dying? blicky got the ###### uh |
|
|
| Report Abuse |
|
|
JJ_ooteJ
|
  |
| Joined: 29 Jun 2016 |
| Total Posts: 66 |
|
|
| 14 Nov 2017 03:52 PM |
| Why are all ID's in the table same? |
|
|
| Report Abuse |
|
|
gunter5
|
  |
| Joined: 15 Mar 2011 |
| Total Posts: 737 |
|
|
| 14 Nov 2017 04:11 PM |
| could be because once it finds their id. It allows them to live, but the i,v in pairs loop continues on till it finishes. so what happens is, It finds their id. then it continues to the next id and trys to match it with theirs then when it doesnt match it ##### #### anyways. so try adding a break. ex: if (id) == (table) then (allow to live) break end |
|
|
| Report Abuse |
|
|
|
| 14 Nov 2017 04:57 PM |
| ######## still kills the player because there are multiple ID's, and before the correct ID would be different strings. So I keep dying bump . |
|
|
| Report Abuse |
|
|