24.08.2013, 06:33
i want to know how to make a command that when a player connects it says "playerid just connected"
and "playerid just disconnected" but whenever i do this:
public OnPlayerConnect(playerid)
{
SendClientMessageToAll(0xFFFFFFFF, "playerid just connected!!!");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SendClientMessageToAll(0xFFFFFFFF, "playerid just disconnected!!!");
return 1;
}
it says "playerid" not there acctual id!!!
please help
and "playerid just disconnected" but whenever i do this:
public OnPlayerConnect(playerid)
{
SendClientMessageToAll(0xFFFFFFFF, "playerid just connected!!!");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SendClientMessageToAll(0xFFFFFFFF, "playerid just disconnected!!!");
return 1;
}
it says "playerid" not there acctual id!!!
please help