13Jayson
|
  |
| Joined: 05 Jun 2012 |
| Total Posts: 1682 |
|
|
| 26 Jan 2016 10:52 PM |
Like by some error, will it stop the whole script or just the coroutine function?
Meeooow!!!!!!13!!! |
|
|
| Report Abuse |
|
|
13Jayson
|
  |
| Joined: 05 Jun 2012 |
| Total Posts: 1682 |
|
|
| 26 Jan 2016 10:57 PM |
bump
if u know about coroutine, u might know what to answer, so plz help!!13!? :>
Meeooow!!!!!!13!!! |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2016 10:58 PM |
de hol scrapt
#code cntkill me < cool |
|
|
| Report Abuse |
|
|
13Jayson
|
  |
| Joined: 05 Jun 2012 |
| Total Posts: 1682 |
|
|
| 26 Jan 2016 11:04 PM |
o god... why the whole though? o.o
lets hope i dont have an error, bcuz the thing I use, I use it for like so many things, and it would break my whole game completly, but im positif that i have no error yet, hopefully it keep like that
Meeooow!!!!!!13!!! |
|
|
| Report Abuse |
|
|
13Jayson
|
  |
| Joined: 05 Jun 2012 |
| Total Posts: 1682 |
|
|
| 26 Jan 2016 11:07 PM |
wait so, if i use coroutine like this
repeat wait() until Player and From and game:GetService("BadgeService"):UserHasBadge(Player.userId, BadgeId)
and the player somehow leave or reset, will it just continue the wait()? im a bit worried about that lol
Meeooow!!!!!!13!!! |
|
|
| Report Abuse |
|
|
13Jayson
|
  |
| Joined: 05 Jun 2012 |
| Total Posts: 1682 |
|
|
| 26 Jan 2016 11:09 PM |
bcuz im using a coroutine inside a RemoteEvent, but i dont use pcall on it... and idk how I'd use pcall for
Meeooow!!!!!!13!!! |
|
|
| Report Abuse |
|
|
13Jayson
|
  |
| Joined: 05 Jun 2012 |
| Total Posts: 1682 |
|
|
| 26 Jan 2016 11:12 PM |
repeat wait() until (Player and From and game:GetService("BadgeService"):UserHasBadge(Player.userId, BadgeId)) or not Player or not From if Player and From and game:GetService("BadgeService"):UserHasBadge(Player.userId, BadgeId) then From.Name = "Completed" end
^ this should fix my problem CX
Meeooow!!!!!!13!!! |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 26 Jan 2016 11:16 PM |
No, coroutine errors will not affect the rest of your script.
|
|
|
| Report Abuse |
|
|
13Jayson
|
  |
| Joined: 05 Jun 2012 |
| Total Posts: 1682 |
|
|
| 26 Jan 2016 11:41 PM |
eh i hope ur right, it would be scary to me
Meeooow!!!!!!13!!! |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 26 Jan 2016 11:45 PM |
Run this code to test:
print(1) coroutine.resume(coroutine.create(function() error("coroutine error") end)) print(2)
|
|
|
| Report Abuse |
|
|
13Jayson
|
  |
| Joined: 05 Jun 2012 |
| Total Posts: 1682 |
|
|
| 26 Jan 2016 11:52 PM |
i tested multiple things, and YES it only break coroutine ;D
i feel safer lol
Meeooow!!!!!!13!!! |
|
|
| Report Abuse |
|
|