Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Quad, alibaba), 2,205 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 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 | 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