public OnPlayerConnect(playerid) { playersconnected++; SendClientMessage(playerid, 0xFF8000FF, "Welcome to the test server!"); new string[128]; format (string, sizeof(string), "There are currently %i players in the server (Including you)", playersconnected; SendClientMessageToAll(0xFF8000FF, string); return 1; } public OnPlayerDisconnect(playerid, reason) { playersconnected--; new string[128]; format (string, sizeof(string), "There are currently %i players in the server (Including you)", playersconnected; SendClientMessageToAll(0xFF8000FF, string); return 1;
public OnPlayerConnect(playerid) { playersconnected++; SendClientMessage(playerid, 0xFF8000FF, "Welcome to the test server!"); new string[128]; format (string, sizeof(string), "There are currently %i players in the server (Including you)", playersconnected); SendClientMessageToAll(0xFF8000FF, string); return 1; } public OnPlayerDisconnect(playerid, reason) { playersconnected--; new string[128]; format (string, sizeof(string), "There are currently %i players in the server (Including you)", playersconnected); SendClientMessageToAll(0xFF8000FF, string); return 1;
format (string, sizeof(string), "There are currently %i players in the server (Including you)", playersconnected;
format (string, sizeof(string), "There are currently %i players in the server (Including you)", playersconnected; return 1; The lines in bold are the issue. |
I see that you didn't place a bracket at the end of the public OnPlayerDisconnect.
|
I've already put you over that you forgot to put bracket
format (string, sizeof(string), "There are currently %i players in the server (Including you)", playersconnected); |