lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


--- In lua-l@yahoogroups.com, "teranwong <teranwong@y...>" 
<teranwong@y...> wrote:
> Hi all,
> 
> I would like to ask a question.... for a MMO RPG wrote by C++ and 
> using LUA as a script tools..... when a player access the script 
like 
> the following..
> 
> if (gold >= 5000)
>    Dec(gold, 5000)
> 
> How do the server know which player will be decreased $5000 since 
in 
> LUA doesn't know the player UIN...... 
> 
> Please advice me ^^... thxthx and sorry for any inconvenience..
> 
> Teran

anyone can answer me please ^^;
or in other way.. how do Lua pass out a pointer back to C++ like
C++ -> Lua -> C++
thxthx