Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] The Source Code → [solved] anyone can help me ? game.cpp

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 11

1

Topic: [solved] anyone can help me ? game.cpp

yeah subject

how to use snprintf (account) on game.cpp

i see : extern int game_add_player(t_game * game, char const * pass, int startver, t_connection * c)
there are using -> t_account * * tempp;     why ?

and i add this code :

snprintf(msgtemp, sizeof(msgtemp), "Name: %s", account_get_age(account));
message_send_text(c, message_type_talk, c, msgtemp);

but error :3

server\source\src\bnetd\game.cpp(1671): error C2065: 'account' : undeclared identifier

2

Re: [solved] anyone can help me ? game.cpp

t_account *    account;
и добавь какой именно аккаунт
account = conn_get_account(c); - это свой аккаунт

3

Re: [solved] anyone can help me ? game.cpp

SkyFall wrote:

t_account *    account;
и добавь какой именно аккаунт
account = conn_get_account(c); - это свой аккаунт

no, I get same error.
there : t_account * * tempp; not t_acount * account;
if t_account * account -> already defined in command.obj

4

Re: [solved] anyone can help me ? game.cpp

вот так получился код

t_account *    account;
account = conn_get_account(c);
snprintf(msgtemp, sizeof(msgtemp), "Name: %s", account_get_age(account));
message_send_text(c, message_type_talk, c, msgtemp);

5

Re: [solved] anyone can help me ? game.cpp

SkyFall wrote:

вот так получился код

t_account *    account;
account = conn_get_account(c);
snprintf(msgtemp, sizeof(msgtemp), "Name: %s", account_get_age(account));
message_send_text(c, message_type_talk, c, msgtemp);

view in game.cpp, there are t_account * * tempp;
:3

6

Re: [solved] anyone can help me ? game.cpp

скинь мне весь код   game_add_player

7

Re: [solved] anyone can help me ? game.cpp

SkyFall wrote:

скинь мне весь код   game_add_player

can i see your game_add_player code ?
please

8

Re: [solved] anyone can help me ? game.cpp

у меня там ничего нет
а что именно хочешь делать ты?
дай мне свой код game_add_player
помогу

9

Re: [solved] anyone can help me ? game.cpp

SkyFall wrote:

у меня там ничего нет
а что именно хочешь делать ты?
дай мне свой код game_add_player
помогу

like here : forums.harpywar.com/viewtopic.php?id=1603

10

Re: [solved] anyone can help me ? game.cpp

vallcerealz wrote:
SkyFall wrote:

у меня там ничего нет
а что именно хочешь делать ты?
дай мне свой код game_add_player
помогу

like here : forums.harpywar.com/viewtopic.php?id=1603

там ещо не доделано

11

Re: [solved] anyone can help me ? game.cpp

solved! thanks

Posts: 11

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 0 guests, 0 registered users

forums.pvpgn.pro → [EN] The Source Code → [solved] anyone can help me ? game.cpp