small help
#2

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:
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;
}
Source: https://sampwiki.blast.hk/wiki/GetPlayerName
Reply


Messages In This Thread
small help - by KamalBa - 21.06.2015, 22:56
Re: small help - by Crayder - 21.06.2015, 23:03
Re: small help - by justice96 - 21.06.2015, 23:05
Re: small help - by KamalBa - 21.06.2015, 23:12
Re: small help - by Crayder - 21.06.2015, 23:14
Re: small help - by KamalBa - 21.06.2015, 23:15
Re: small help - by justice96 - 21.06.2015, 23:22
Re: small help - by Crayder - 21.06.2015, 23:28
Re: small help - by KamalBa - 21.06.2015, 23:55
Re: small help - by Crayder - 22.06.2015, 00:01

Forum Jump:


Users browsing this thread: 2 Guest(s)