EW1611 Posted September 1, 2019 Share Posted September 1, 2019 olá, criei um elemento no server-side, mas qrio pegar a data dele no lado client, para por no DX, mas da o seguinte erro: Bad argument @'getElementData' [Expected element at argument 1, got string 'candidato1] parte dos elementos no client local votos1 = getElementData("candidato1","votos") or 0 local votos2 = getElementData("candidato2","votos") or 0 local votosB = getElementData("vbrancos","votosB") or 0 Link to comment
[M]ister Posted September 2, 2019 Share Posted September 2, 2019 local candidato1 = getElementsByType("candidato1",resourceRoot)[1] local votos1 = getElementData(candidato1,"votos") or 0 1 Link to comment
EW1611 Posted September 2, 2019 Author Share Posted September 2, 2019 saberia explicar esse script? Link to comment
[M]ister Posted September 2, 2019 Share Posted September 2, 2019 Basta clicar em cima da função que você será redirecionado à respectiva página da Wiki que informa o que faz, como utiliza e etc. 1 Link to comment
carlos eduardo Posted September 2, 2019 Share Posted September 2, 2019 getElementData é dos dois lado Link to comment
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