CallRemoteFunction
#11

Поскольку в нативах инклюдных не даётся никаких уточнений, то const там не нужен:
pawn Код:
native ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
А зачем public? Если только для CallRemote, то не проще в мод засунуть ФС?

Если нет, то на ум приходит только такое:
pawn Код:
public OnPlayerConnect(playerid)
{
    SPD(playerid, 1, 2, "", "", "", "");
    return 1;
}
forward SPD(playerid, dialogid, style, caption[], info[], button1[], button2[]);
public SPD(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
    if(strlen(button2) < 1) ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, "");
    else ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
    return 1;
}
Reply


Messages In This Thread
CallRemoteFunction - by Romz - 08.01.2014, 12:46
Re: CallRemoteFunction - by White_116 - 08.01.2014, 13:22
Re: CallRemoteFunction - by Romz - 08.01.2014, 14:03
Re: CallRemoteFunction - by warlock02 - 08.01.2014, 22:30
Re: CallRemoteFunction - by Stepashka - 09.01.2014, 06:14
Re: CallRemoteFunction - by Romz - 09.01.2014, 07:36
Re: CallRemoteFunction - by Stepashka - 09.01.2014, 07:53
Re: CallRemoteFunction - by Romz - 09.01.2014, 11:22
Re: CallRemoteFunction - by Stepashka - 09.01.2014, 11:37
Re: CallRemoteFunction - by Romz - 09.01.2014, 13:06
Re: CallRemoteFunction - by OKStyle - 09.01.2014, 16:44
Re: CallRemoteFunction - by Stepashka - 09.01.2014, 17:34
Re: CallRemoteFunction - by OKStyle - 10.01.2014, 03:50
Re: CallRemoteFunction - by Stepashka - 10.01.2014, 05:50
Re: CallRemoteFunction - by OKStyle - 10.01.2014, 15:59

Forum Jump:


Users browsing this thread: 2 Guest(s)