Hi guys,
and again a question from my smoking mind

So, actually iam converting parts of locoweeds MP Tut to my own game. But as u all know, original locos Tut was written in C-Script.

I had several converting issus, but i could solve the most of them on my own.
But i have this damn problem, it all goes around this simple line:

#define MAX_CONNECTIONS 8; // max. Anzahl der Verbindungen

Its frist used in the server_called() :

function server_called()
{
// if new player connected, increment people connected
if ((event_type == EVENT_JOIN) && (people_connected <= MAX_CONNECTIONS)) // <--- This Line is the syntax Error!!!
{
people_connected += 1; // another person connected
send_var(people_connected); // send number of people connected
}

// some one disconnected
if (event_type == EVENT_LEAVE)
{
people_connected -= 1; // one less person connected to server
send_var(people_connected); // send number of people connected
}
}

And i always get a syntax error. If i replace the "MAX_CONNECTENS" into "8", it works fine! So what iam doing wrong here?

Thx for any helpfull answer!


A7 Commercial.