CallRemoteFunction problem!
#1

Код:
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
Reply
#2

try using and "s" instead of "i" for the style

and change the in the stock style to style[]
Reply
#3

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
Reply
#4

hmm show SBRShowPlayerDialog
Reply
#5

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);
}
Reply
#6

ehm you trying to hook ShowPlayerDialog?
Reply
#7

hmm it's not a problem with showplayerdialog

i have problem with OnDialogResponse
how can i hook OnDialogResponse?
Reply
#8

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
Reply
#9

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
Reply
#10

np

did my code work ?
i writen it with mobile phone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)