SA-MP Forums Archive
CallRemoteFunction problem! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CallRemoteFunction problem! (/showthread.php?tid=293591)



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