Dialog doesn't work.
#1

When I click on player in list is no reaction.
Код HTML:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	new friend[24];
    SetPVarInt(playerid, "Clicked", clickedplayerid);
    
    if(IsAcceptedFriend(playerid, friend))
	{
		ShowPlayerDialog(playerid, DIALOG_ISFRIEND, DIALOG_STYLE_LIST, "", "Teleport\nSend Money\nDelete Friend", "Select", "Close");
	}
	else
	{
	    ShowPlayerDialog(playerid, DIALOG_INVITEFR, DIALOG_STYLE_LIST, "", "Invite to add friend", "Invite", "Close");
	}
    return 1;
}
IsAcceptedFriend

Код HTML:
stock IsAcceptedFriend(playerid, friend[]) {
    new query[256];
    new bool:isfriend = false;
    format(query, sizeof(query), "SELECT * FROM `Znajomi` WHERE (`Nick` = '%s' AND `Znajomy` = '%s' AND `Akceptowane` = '1') OR (`Nick` = '%s' AND `Znajomy` = '%s' AND `Akceptowane` = '1') ",
    GetPlayerNick(playerid), friend, friend, GetPlayerNick(playerid));
    mysql_query(query);
    mysql_store_result();
    isfriend = mysql_num_rows()>0;
    mysql_free_result();
    return isfriend;
}
Reply


Messages In This Thread
Dialog doesn't work. - by Creax - 15.11.2013, 16:36
Re: Dialog doesn't work. - by Konstantinos - 15.11.2013, 16:49
Re: Dialog doesn't work. - by Creax - 16.11.2013, 10:46
Re: Dialog doesn't work. - by Konstantinos - 16.11.2013, 10:52
Re: Dialog doesn't work. - by Creax - 16.11.2013, 11:27
Re: Dialog doesn't work. - by Konstantinos - 16.11.2013, 11:33
Re: Dialog doesn't work. - by Creax - 16.11.2013, 11:59
Re: Dialog doesn't work. - by Konstantinos - 16.11.2013, 12:06
Re: Dialog doesn't work. - by Creax - 16.11.2013, 12:24
Re: Dialog doesn't work. - by Konstantinos - 16.11.2013, 12:29

Forum Jump:


Users browsing this thread: 1 Guest(s)