Problem.. Acccesds.
#5

And same errors in this code same 2 error in accept command, and same 2 error in declinemarriage command
pawn Код:
CMD:accept(playerid,params[])
{
new string[500];
new ID,Nam[MAX_PLAYER_NAME],PName[MAX_PLAYER_NAME];
if(offer[playerid] == 1) {
if(sscanf(params,"i",ID)) return SendClientMessage(playerid,COLOR_GREY, "USAGE: /accept [ID]");
if(PlayerInfo[ID][Married] == 1) return SendClientMessage(playerid,COLOR_GREY,"Error: You are already married/or/The person you want to marry is married");
offer[playerid] = 0;
GetPlayerName(playerid,Nam,sizeof(Nam));
GetPlayerName(ID,PName,sizeof(PName)):
format(string,500,"Congratulations! %s and %s has successfully married!",PName,Nam);
SendClientMessageToAll(COLOR_GREY,string);
}
return 1;
}
CMD:declinemarriage(playerid,params[])
{
new string[500];
new ID,Nam[MAX_PLAYER_NAME],PName[MAX_PLAYER_NAME];
if(offer[playerid] == 1) {
if(sscanf(params,"i",ID)) return SendClientMessage(playerid,COLOR_GREY, "USAGE: /declinemarriage [ID]");
offer[playerid] = 0;
GetPlayerName(playerid,Nam,sizeof(Nam));
GetPlayerName(ID,PName,sizeof(PName)):
format(string,500,"%s has declined to marry with %s.", Nam,PName);
SendClientMessageToAll(COLOR_GREY,string);
}
return 1;
}
Reply


Messages In This Thread
Problem.. Acccesds. - by RyanPetersons - 04.07.2013, 18:26
Re: Problem.. Acccesds. - by RyanPetersons - 04.07.2013, 18:28
Re: Problem.. Acccesds. - by Xoomer - 04.07.2013, 18:30
Re: Problem.. Acccesds. - by RyanPetersons - 04.07.2013, 18:54
Re: Problem.. Acccesds. - by RyanPetersons - 04.07.2013, 18:59

Forum Jump:


Users browsing this thread: 1 Guest(s)