Re: Question about pointer......
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Question about pointer......
- From: "teranwong" <teranwong@...>
- Date: 2003年3月05日 02:35:27 -0000
--- 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