CallRemoteFunction problem! -
Trac - 29.10.2011
Код:
public FS_ShowPlayerDialog(playerid,dialogid,style,caption[],info[],button1[],button2[])
{
return CallRemoteFunction("SBRShowPlayerDialog","iiissss",playerid,dialogid,style,caption,info,button1,button2);
}
why it's only show DIALOG_STYLE_LIST dialogs
but not show
DIALOG_STYLE_MSGBOX
DIALOG_STYLE_INPUT
Re: CallRemoteFunction problem! -
Tigerkiller - 29.10.2011
try using and "s" instead of "i" for the style
and change the in the stock style to style[]
Re: CallRemoteFunction problem! -
Trac - 29.10.2011
Quote:
Originally Posted by Tigerkiller
try using and "s" instead of "i" for the style
and change the in the stock style to style[]
|
not work
Код:
error 025: function heading differs from prototype
Re: CallRemoteFunction problem! -
Tigerkiller - 29.10.2011
hmm show SBRShowPlayerDialog
Re: CallRemoteFunction problem! -
Trac - 29.10.2011
Quote:
Originally Posted by Tigerkiller
hmm show SBRShowPlayerDialog
|
Код:
public SBRShowPlayerDialog(playerid,dialogid,style,caption[],info[],button1[],button2[])
{
return ShowPlayerDialog(playerid,dialogid,style,caption,info,button1,button2);
}
Re: CallRemoteFunction problem! -
Tigerkiller - 29.10.2011
ehm you trying to hook ShowPlayerDialog?
Re: CallRemoteFunction problem! -
Trac - 29.10.2011
hmm it's not a problem with showplayerdialog
i have problem with OnDialogResponse
how can i hook OnDialogResponse?
Re: CallRemoteFunction problem! -
Tigerkiller - 29.10.2011
easy ^^
pawn Код:
stock NEW_OnPlayerDialogResponse(respon thiks)
{
do your thinks here
return CallRemoteFunction("OnPlayerDialogResponse","params",params);
#if defined _ALS_OnPlayerDialogResponse
#undef OnPlayerDialogResponse
#endif
#define OnPlayerDialogResponse NEW_OnPlayerDialogResponse
Re: CallRemoteFunction problem! -
Trac - 29.10.2011
Quote:
Originally Posted by Tigerkiller
easy ^^
pawn Код:
stock NEW_OnPlayerDialogResponse(respon thiks) { do your thinks here return CallRemoteFunction("OnPlayerDialogResponse","params",params);
#if defined _ALS_OnPlayerDialogResponse #undef OnPlayerDialogResponse #endif
#define OnPlayerDialogResponse NEW_OnPlayerDialogResponse
|
thanks
SOLVED
Re: CallRemoteFunction problem! -
Tigerkiller - 29.10.2011
np
did my code work ?
i writen it with mobile phone