CMD retrun problem
#1

I have a end of the cmd

warning 209: function "cmd_equip" should return a value



pawn Код:
}
COMMAND:givehealthinsurance(playerid, params[])
{
    if(Died[playerid] == 1) { SendClientMessage(playerid, COLOR_WHITE, "Cannot use this command while dead."); return 1; }
    if(isnull(params)) return SendClientMessage(playerid, COLOUR_SYSTEM, "USAGE: /givehealthinsurance [playerid/partofname]");
    if(PlayerInfo[playerid][pFaction] == 2)
    {
        giveplayerid = ReturnUser(tmp);
        if(IsPlayerConnected(giveplayerid))
        {
            if(giveplayerid != INVALID_PLAYER_ID) { SendClientMessage(playerid, COLOR_WHITE, "Playerid is not an active playerid."); return 1; }
            {
                PlayerInfo[giveplayerid][pLifeLic] = 1;
                new give1[128];
                format(give1, sizeof(give1), "You have given %s a medical insurance.", GetPlayerNameEx(giveplayerid));
                SendClientMessage(playerid, COLOR_WHITE, give1);
                format(give1, sizeof(give1), "%s gave you a medical insurance.", GetPlayerNameEx(giveplayerid));
                SendClientMessage(giveplayerid, COLOR_WHITE, give1);
            }
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You are not in EMT.");
    }
    return 1;
}
Reply


Messages In This Thread
CMD retrun problem - by N0FeaR - 07.06.2012, 18:35
Re: CMD retrun problem - by Revo - 07.06.2012, 18:37
Re: CMD retrun problem - by zDevon - 07.06.2012, 18:37
Re: CMD retrun problem - by N0FeaR - 07.06.2012, 19:08
Re: CMD retrun problem - by Sandiel - 07.06.2012, 19:41
Re: CMD retrun problem - by zDevon - 07.06.2012, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)