Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 6,080 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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