31.07.2014, 00:03
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; }