Wedding Command
#1

Hi all, I've been changing the default command for weddings of "Los Angeles Role Play". I want to delete most parts of the system, and I have done this:

pawn Код:
else if(strcmp(x_job,"marriage",true) == 0)
            {
                if(ProposeOffer[playerid] < 999)
                {
                    if(IsPlayerConnected(ProposeOffer[playerid]))
                    {
                        if(ProxDetectorS(10.0, playerid, ProposeOffer[playerid]))
                        {
                            GetPlayerName(ProposeOffer[playerid], giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            strmid(PlayerInfo[ProposedTo[playerid]][pMarriedTo], sendername, 0, strlen(sendername), 255);
                            strmid(PlayerInfo[playerid][pMarriedTo], giveplayer, 0, strlen(giveplayer), 255);
                            SafeGivePlayerMoney(playerid, - 5000);
                            PlayerInfo[playerid][pMarried] = 1;
                            PlayerInfo[ProposedTo[playerid]][pMarried] = 1;
                            PlayerInfo[ProposedTo[playerid]][pPhousekey] = PlayerInfo[playerid][pPhousekey];
                            ProposedTo[playerid] = 999;
                            format(string, sizeof(string), "Has aceptado la proposiciуn de matrimonio de %s.", giveplayer);
                            SendClientMessage(playerid, COLOR_WHITE, string);
                            format(string, sizeof(string), "%s ha aceptado la proposiciуn de matrimonio.", sendername);
                            SendClientMessage(ProposeOffer[playerid], COLOR_WHITE, string);
                            format(string, sizeof(string), "Funcionario: Enhorabuena por vuestra uniуn, que seбis muy felices.", sendername, giveplayer);
                            SendClientMessage(playerid, VERDE, string);
                        }
                    }
                    //[...]
This is when I type: /accept marriage, but It say unknown command... Anyone see what is wrong?
Sorry for my English.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)