TR/setElementData: Difference between revisions
Jump to navigation
Jump to search
(→Örnek) |
|||
Line 17: | Line 17: | ||
}} | }} | ||
== | ==Örnek== | ||
<section name="Client Taraflı" class="client" show="true"> | |||
Bu Örnek Oyuncunun Parasını veri olarak kayıt etmektedir | |||
<syntaxhighlight lang="lua"> | |||
setElementData(getLocalPlayer(), "paraVerisi", getPlayerMoney(getLocalPlayer())) | |||
</syntaxhighlight> | |||
</section> |
Revision as of 17:19, 21 May 2017
Syntax
bool setElementData ( element theElement, string key, var value [, bool synchronize = true ] )
OOP Syntax Help! I don't understand this!
- Method: element:setData(...)
- Counterpart: getElementData
Optional Arguments
- synchronize: Determines whether or not the data will be synchronized with the server (client-side variation) and remote clients (both variations).
Returns
Returns true if the data was set succesfully, false otherwise.
Issues
Issue ID | Description |
---|---|
#7389 | [Fixed in 1.3.5-7389] Problem with floating numbers |
Örnek
Click to collapse [-]
Client TaraflıBu Örnek Oyuncunun Parasını veri olarak kayıt etmektedir
setElementData(getLocalPlayer(), "paraVerisi", getPlayerMoney(getLocalPlayer()))