|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Nov 2011
Posts: 57
Reputation: 0
|
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 " |
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2007
Location: Western Germany
Posts: 2,870
Reputation: 618
|
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) |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with function. | CoaPsyFactor | Help Archive | 4 | 03/06/2011 08:43 AM |
| Function | Unknown123 | Help Archive | 7 | 09/05/2011 05:47 PM |
| Function just stops other function | Blay09 | Help Archive | 2 | 01/01/2011 12:26 PM |
| Function Help | VictorMartinez | Help Archive | 6 | 21/07/2010 02:36 AM |
| function not working after another function | [HLF]Southclaw | Help Archive | 5 | 03/05/2010 05:45 PM |