Command
#7

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;
 }
Reply


Messages In This Thread
Command - by KotoK - 30.01.2011, 23:22
Re: Command - by PeteShag - 31.01.2011, 00:42
Re: Command - by Antonio [G-RP] - 31.01.2011, 00:43
Re: Command - by KotoK - 31.01.2011, 01:54
Re: Command - by JamesC - 31.01.2011, 02:37
Re: Command - by KotoK - 31.01.2011, 02:50
Re: Command - by PeteShag - 31.01.2011, 03:23

Forum Jump:


Users browsing this thread: 6 Guest(s)