|
| 30 Dec 2015 02:34 PM |
I have a script that handles RemoteFunctions. The functions are invoked from a local script. Here's the function that seems to have an issue.
Events.hasVoted.OnServerInvoke:connect(function(plr) if DS:GetDataStore('HasVoted'):GetAsync(plr.userId) then return true else return false end end)
The output says this: OnServerInvoke is a callback member of RemoteFunction; you can only set the callback value, get is not available
I'm pretty confused regarding why I'm getting that error. Can anyone help me solve this? |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 30 Dec 2015 02:34 PM |
Events.hasVoted.OnServerInvoke = function(plr if DS:GetDataStore('HasVoted'):GetAsync(plr.userId) then return true else return false end end |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 30 Dec 2015 02:35 PM |
| put a ), i didn't mean to remove it |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 30 Dec 2015 02:36 PM |
Events.hasVoted.OnServerInvoke = function(plr) if DS:GetDataStore('HasVoted'):GetAsync(plr.userId) then return true else return false end end
like this, this is fixed |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2015 02:38 PM |
I'm guessing it is in a local script or no?
The Legend of Heroes Sen no Kiseki |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2015 02:39 PM |
Nvm
The Legend of Heroes Sen no Kiseki |
|
|
| Report Abuse |
|
|
| |
|