21.06.2015, 23:03
For 1437, you just simply need to properly indent the code.
For the rest you are not using GetPlayerName correctly. This is the correct way to use it:
Source: https://sampwiki.blast.hk/wiki/GetPlayerName
For the rest you are not using GetPlayerName correctly. This is the correct way to use it:
pawn Код:
public OnPlayerConnect(playerid)
{
// Get the name of the player that connected and display a join message to other players
new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has joined the server.", name);
SendClientMessageToAll(0xC4C4C4FF, string);
return 1;
}