function heading differs from prototype
#1

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

You can't add parameters there.
Reply
#3

OK so os it ok if i make a Public header and then link it to dialog responce will that work?
Reply
#4

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.
Reply
#5

Im not using Parse Files to load through the dialog or having a try as i think that might work
Reply
#6

You can't alter native functions.
Reply
#7

Make your own callback and forward it, what does this call back should do?
Reply
#8

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

No problem, glad to help, although, I don't know how... -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)