Error 001: expected token: ",", but found ";"
#1

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.

Код:
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;
The lines in bold are the issue.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)