function body without function header.
#1

I have:
#define CBP:%0(%1, {Float, _}:...) forward %0(%1, {Float, _}:...); public %0(%1, {Float, _}:...)

probleme is " error 055: start of function body without function header "

public Is:
CBP:AccountDataLoad(playerid, tag[], name[], value[])

who can I make it work?

PS: I fix probleme add this #define CBP:%0({Float, _}:...) forward %0({Float, _}:...); public %0({Float, _}:...)

But I have warning " warning 208: function with tag result used before definition, forcing reparse "
Reply
#2

You cant use this: {Float, _}:... in a define, as this pattern cant be detected by the precompiler. But you can simply leave it out, the %1 will not only include one parameter, but everything between the ():

#define CBP:%0(%1) forward %0(%1); public %0(%1)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)