Jump to content
  • 0
Sign in to follow this  
midnity

Programação O que esse parametro faz/checa?

Question

midnity    0
midnity

Ja me deraprei algumas vezes com o parametro RETURNVALUE_NOERROR  que pode por exemplo checar se a algo em tiles usando queryTileAddThing(target, toPosition) ==

RETURNVALUE_NOERROR 

Alguem consegue explicar o que  o RETURNVALUE_NOERROR tem como base para checar se ira ocorrer erros?

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Kuma Bear    33
Kuma Bear

esse if q vc deu de exemplo checa se oq ta retornando na funçao queryTileAddThing() é igual ao valor de RETURNVALUE_NOERROR 

se você quer saber o que é isso, printa ambos os valores e cheque você mesmo (spoiler: https://github.com/otland/forgottenserver/blob/b7ef46dfc7ac4fad1bcea5e3604c9ef8c4350864/src/tile.cpp#L479 https://github.com/otland/forgottenserver/blob/6c8e85b90cdb6e02ca4aff926975f476e5a6af60/data/lib/compat/compat.lua#L989)

print(RETURNVALUE_NOERROR) deve ser o bastante, se me recordo bem que é assim que printa em lua

Edited by Kuma Bear

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×