10.03.2015, 11:09
hi all plz help me
MY CODE
ERROR
MY CODE
Код:
CMD:jetpack(playerid, params[]) { if(gPlayerClass[playerid] == AIRFORCE)//if the player is Airforce { SetPlayerSpecialAction(playerid,2);//This is command for the Airforce, he can spawn jetpack by /jp command return 1; } } CMD:dis(playerid, params[]) { if(gPlayerClass[playerid] == SPY) { ShowPlayerDialog(playerid, 88, DIALOG_STYLE_MSGBOX, "{6EF83C}Spy Disguise Kit:", "/usa\n/sov\n/japan\n/england\n/pak\n/ger", "Disguise ","Exit");//Replace the team1,2,3 to your game teams name and colors, by /team1 or /team2 or / team3 the player gets disguise to enemy soldier but don't changes its team return 1; } } CMD:usa(playerid, params[]) { if(gPlayerClass[playerid] == SPY)//if player class spy { ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to usa:", "Team: USA\nColor: Blue\nSkin: 287\nDisguised Class: Soldier", "Ok ",""); SetPlayerSkin(playerid,287);//skin set to S.W.A.T, can change to ur team skin SetPlayerColor(playerid,COLOR_BLUE);//Color blue return 1; } } CMD:sov(playerid, params[]) { if(gPlayerClass[playerid] == SPY)//if player class spy { ShowPlayerDialog(playerid, 22, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to sov:", "Team: Sov\nColor: Red\nSkin: 285\nDisguised Class: Soldier", "Ok ",""); SetPlayerSkin(playerid,285);//skin set to Military, can change to ur team skin SetPlayerColor(playerid,COLOR_RED);//Color red return 1; } } CMD:japan(playerid, params[]) { if(gPlayerClass[playerid] == SPY)//if player class spy { ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to japan:", "Team: Japan\nColor: Green\nSkin: 73\nDisguised Class: Soldier", "Ok ",""); SetPlayerSkin(playerid,73);//skin set to Rockstar, can change to ur team skin SetPlayerColor(playerid,COLOR_BRIGHTRED);//Color green return 1; } } CMD:england(playerid, params[]) { if(gPlayerClass[playerid] == SPY)//if player class spy { ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to england:", "Team: England\nColor: Orange\nSkin: 30\nDisguised Class: Soldier", "Ok ",""); SetPlayerSkin(playerid,30);//skin set to Rockstar, can change to ur team skin SetPlayerColor(playerid,COLOR_LIGHTBLUE);//Color orange return 1; } } CMD:pak(playerid, params[]) { if(gPlayerClass[playerid] == SPY)//if player class spy { ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to PAK:", "Team: Pakistan\nColor: Green\nSkin: 122\nDisguised Class: Soldier", "Ok ",""); SetPlayerSkin(playerid,122);//skin set to Rockstar, can change to ur team skin SetPlayerColor(playerid,C_GANG_GREEN);//Color orange return 1; } } CMD:ger(playerid,params[]) { if(gPlayerClass[playerid] == SPY)//if player class spy { ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to GERMANY:", "Team: Germany\nColor: Yellow\nSkin: 121\nDisguised Class: Soldier", "Ok ",""); SetPlayerSkin(playerid,121);//skin set to Rockstar, can change to ur team skin SetPlayerColor(playerid,COLOR_YELLOW);//Color orange return 1; } }
Код:
D:\A_codrwiv\gamemodes\codrwiv2.pwn(4921) : warning 209: function "cmd_jetpack" should return a value D:\A_codrwiv\gamemodes\codrwiv2.pwn(4943) : warning 209: function "cmd_dis" should return a value D:\A_codrwiv\gamemodes\codrwiv2.pwn(4955) : warning 209: function "cmd_usa" should return a value D:\A_codrwiv\gamemodes\codrwiv2.pwn(4967) : warning 209: function "cmd_sov" should return a value D:\A_codrwiv\gamemodes\codrwiv2.pwn(4979) : warning 209: function "cmd_japan" should return a value D:\A_codrwiv\gamemodes\codrwiv2.pwn(4990) : warning 209: function "cmd_england" should return a value D:\A_codrwiv\gamemodes\codrwiv2.pwn(5001) : warning 209: function "cmd_pak" should return a value D:\A_codrwiv\gamemodes\codrwiv2.pwn(5012) : warning 209: function "cmd_ger" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase