Posts: 445
Threads: 96
Joined: Jan 2011
Reputation:
0
error 025: function heading differs from prototype
i know what this means it means the thing is forwarded wrong what im going to show you now however i need t=to edit it to keep these values
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[], name[],value[])
Ok thats the dialog responce as you can see ive added
name[],value[])
how can i keep these but loose the error
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
You can't add parameters there.
Posts: 445
Threads: 96
Joined: Jan 2011
Reputation:
0
OK so os it ok if i make a Public header and then link it to dialog responce will that work?
Posts: 725
Threads: 4
Joined: Nov 2010
Reputation:
0
You can't add parameters to an exist callback, but what you actually can do is creating a callback of your own with an include, using CallLocalFunction. However, you need to have a bit more knowledge, download few includes such as OnPlayerShootPlayer, OnEmptyVehicleShoot, etc.
Then look inside and get a basic knowledge how that works.
Posts: 445
Threads: 96
Joined: Jan 2011
Reputation:
0
Im not using Parse Files to load through the dialog or having a try as i think that might work
Posts: 470
Threads: 10
Joined: Apr 2011
Reputation:
0
You can't alter native functions.
Posts: 725
Threads: 4
Joined: Nov 2010
Reputation:
0
Make your own callback and forward it, what does this call back should do?
Posts: 445
Threads: 96
Joined: Jan 2011
Reputation:
0
Right ive made a Parse File because im using Y_INI and now ive tryed it it works thanks for you help by the way
Posts: 725
Threads: 4
Joined: Nov 2010
Reputation:
0
No problem, glad to help, although, I don't know how... -.-