27.08.2011, 09:38
Yes, this is probably a fools mistake and most likely the easiest thing to fix in the world, I have tried but everything I change generates a new error. Sorry, but I'm completely new to PAWN.
The lines in bold are the issue.
Код:
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;