Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 04/29/26 18:09
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 5,594 guests, and 72 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ukgamer, valino, juergenwue, VladMak, Geir
19210 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