Help with something please as fast as you can!
#5

here's the command i did but when i compile the compiler crashs
Код:
CMD:hbadge(playerid, params[])
{
    if(PlayerInfo[playerid][playerteam] == HITMAN) return SendClientMessage,COLOR_RED, "[Error] You're not a hitman"
    {
        new badge[128], id;
        if(sscanf(params,"us",id,badge)) return SendClientMessage(playerid, -1, "SYNTAX: /hbadge [Player] [Badge]");
        if(sscanf(params,"badge1",badge))
        {
        SendClientMessage(iPlayer, COLOR_WHITE, "{3f9541}========= {7ada7d}[Government Badge] {3f9541}=========");
		format(iStr, sizeof(iStr), " {7ada7d}Name: {FFFFFF}%s", RPName(playerid));
		SendClientMessage(iPlayer, COLOR_WHITE, iStr);
		format(iStr, sizeof(iStr), " {7ada7d}Employed at: {FFFFFF}S.A.S.F.", PlayerInfo[playerid]);
		SendClientMessage(iPlayer, COLOR_WHITE, iStr);
		format(iStr, sizeof(iStr), " {7ada7d}Position: {FFFFFF}N/A", PlayerInfo[playerid]);
		SendClientMessage(iPlayer, COLOR_WHITE, iStr);
		SendClientMessage(iPlayer, COLOR_WHITE, "{3f9541}========= {7ada7d}[Government Badge] {3f9541}=========");
        }
        if(sscanf(params,"badge2",badge))
        {
        SendClientMessage(iPlayer, COLOR_WHITE, "{3f9541}========= {7ada7d}[Government Badge] {3f9541}=========");
		format(iStr, sizeof(iStr), " {7ada7d}Name: {FFFFFF}%s", RPName(playerid));
		SendClientMessage(iPlayer, COLOR_WHITE, iStr);
		format(iStr, sizeof(iStr), " {7ada7d}Employed at: {FFFFFF}F.B.I.", PlayerInfo[playerid]);
		SendClientMessage(iPlayer, COLOR_WHITE, iStr);
		format(iStr, sizeof(iStr), " {7ada7d}Position: {FFFFFF}N/A", PlayerInfo[playerid]);
		SendClientMessage(iPlayer, COLOR_WHITE, iStr);
		SendClientMessage(iPlayer, COLOR_WHITE, "{3f9541}========= {7ada7d}[Government Badge] {3f9541}=========");
        }
        if(sscanf(params,"badge3",badge))
        {
        SendClientMessage(iPlayer, COLOR_WHITE, "{3f9541}========= {7ada7d}[Government Badge] {3f9541}=========");
		format(iStr, sizeof(iStr), " {7ada7d}Name: {FFFFFF}%s", RPName(playerid));
		SendClientMessage(iPlayer, COLOR_WHITE, iStr);
		format(iStr, sizeof(iStr), " {7ada7d}Employed at: {FFFFFF}Police", PlayerInfo[playerid]);
		SendClientMessage(iPlayer, COLOR_WHITE, iStr);
		format(iStr, sizeof(iStr), " {7ada7d}Position: {FFFFFF}N/A", PlayerInfo[playerid]);
		SendClientMessage(iPlayer, COLOR_WHITE, iStr);
		SendClientMessage(iPlayer, COLOR_WHITE, "{3f9541}========= {7ada7d}[Government Badge] {3f9541}=========");
		}
                return 1;
}
Reply


Messages In This Thread
Help with something please as fast as you can! - by joko2021 - 30.07.2014, 21:28
Re: Help with something please as fast as you can! - by joko2021 - 30.07.2014, 23:06
Re: Help with something please as fast as you can! - by Don_Cage - 30.07.2014, 23:18
Re: Help with something please as fast as you can! - by joko2021 - 30.07.2014, 23:49
Re: Help with something please as fast as you can! - by joko2021 - 31.07.2014, 00:03
Re: Help with something please as fast as you can! - by d3ll - 31.07.2014, 00:42
Re: Help with something please as fast as you can! - by joko2021 - 31.07.2014, 13:48

Forum Jump:


Users browsing this thread: 1 Guest(s)