Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, kzhao, 7th_zorro), 714 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
MP-Events #115250
03/05/07 17:17
03/05/07 17:17
Joined: Mar 2002
Posts: 1,774
Magdeburg
F
FlorianP Offline OP
Serious User
FlorianP  Offline OP
Serious User
F

Joined: Mar 2002
Posts: 1,774
Magdeburg
Hoi,

hätte da mal ne kurze Zwischenfrage -
und zwar ist im Handbuch folgender Code zu lesen:
Code:
  function server_event(str)
{
if (event_type == event_join)
{
str_cpy(temp_str,str);
str_cat(temp_str," has joined");
scroll_message(temp_str);
return;
}
...
on_server = server_event;



Aufgrund der mangelden Dokumentation ergibt sich da für mich die Frage, ob nach einem Event-Aufruf mittels server_event, der gesendete String/Var automatisch als Parameter übergeben wird.


I <3 LINQ
Re: MP-Events [Re: FlorianP] #115251
03/05/07 17:21
03/05/07 17:21
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Quote:

on_server = function
The function is executed when the server receives a message from a client. The event_type variable is set to the type of the message. When the message contains a string, a pointer to the received string is handed over as parameter to the function.
Remarks:
There are 4 types of server events:
Event_join A client has joined the session. The client name is handed over.
Event_leave A client has left the session. The client name is handed over.
Event_string A client has sent a string to the server. The string pointer is handed over.
Event_var A client has sent a variable or an array to the server.




Solltest du kein Englisch verstehen übersetz ich dir gerne den Text.


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