Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (AndrewAMD, fairtrader, 3run), 599 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: send_var_id?? [Re: Michael_Schwarz] #143732
08/06/07 05:58
08/06/07 05:58
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline OP
Serious User
PrenceOfDarkness  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,305
New York
Code:

function server_event(STR,NUM)
{
client_name = STR;
client_id = NUM;
temp = NUM;
str_for_num(client_id_str,client_id);
wait(-1);
send_var_id(temp,client_id);
player = ent_create(testing_mdl,0,testing_function);
wait(-1);
player.skill1 = client_id;
}


everytime I go to use this script my game crashes and no reason is given... obviously there is a problem. I know it's send_var_id because when I comment it out the game doesnt crash.


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
Re: send_var_id?? [Re: PrenceOfDarkness] #143733
08/06/07 08:26
08/06/07 08:26
Joined: Jan 2003
Posts: 4,305
Damocles Offline
Expert
Damocles  Offline
Expert

Joined: Jan 2003
Posts: 4,305
So it might be, that the client ID is incorrectly set,
try send_var_id(temp,temp);

3dgs should handle the "wrong client ID" exception better.
So this is probably a bug.

Re: send_var_id?? [Re: Damocles] #143734
08/06/07 11:38
08/06/07 11:38
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
I don't know what the parameters in send_var_id mean, but did you think about the fact that temp might be changed during the wait(-1)? Better store the NUM in a local variable. It might very well be that the first parameter is the client you are sending to, so this would go wrong if temp was changed during the wait.. Also, it might be that the function is called for another event, so you have a wrong ID.

Re: send_var_id?? [Re: Excessus] #143735
08/06/07 21:20
08/06/07 21:20
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline OP
Serious User
PrenceOfDarkness  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,305
New York
i've also tried send_var_id(client,client_id);

i made temp in A7 there is no predefined temp var like back in A6. It's a long variable. But even with send_var_id(client,client_id); i get the same error... wtf?


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1