ERROR
#2

You need to use GetPlayerName, example from samp wiki:
pawn Код:
new pname[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
 
format(string, sizeof(string), "%s has joined the server.", name);
SendClientMessageToAll(0xC4C4C4FF, string);
I advice you to make a stock of it like this (you can just use this one, its also from the samp wiki)
pawn Код:
stock PlayerName(playerid)
{
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    return pname;
}
If you use this stock you can remove the getplayername and the pname variable and relace it with PlayerName in your command

Hope that helped! Good luck.
Reply


Messages In This Thread
ERROR - by TomatoRage - 06.01.2014, 10:59
Re: ERROR - by Voxel - 06.01.2014, 11:29
Re: ERROR - by MatriXgaMer - 06.01.2014, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)