05.07.2010, 18:11
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:
This is when I type: /accept marriage, but It say unknown command... Anyone see what is wrong?
Sorry for my English.
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);
}
}
//[...]
Sorry for my English.