31.01.2011, 03:23
He/She/It asked for sscanf though.
pawn Код:
command(describe, playerid, params[])
{
new name[MAX_PLAYER_NAME], id;
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_GREY, " You need to login first !");
if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_WHITE, "HINT: /describe [playerid/PartOfName]");
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s's appearance:", name);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "%s", PlayerInfo[id][pApp]);
SendClientMessage(playerid, COLOR_PURPLE, string);
return 1;
}