bugblatter sagt zu den forwards in sienem tutorial:
Zitat:
Function declarations
Now comes the part many plugin authors omit, and get away with. The Small language has a two-pass compiler, so theoretically it is not necessary to declare your functions in advance. However, the compiler is known to be buggy - and if you do not declare all functions then sometimes the compiler forgets to include some functions in the compiled AMX file. The results of this are random, and extremely hard to diagnose.
To avoid headaches when debugging, always declare every function in your plugin. The only exceptions are the event handlers plugin_init, plugin_continue, plugin_disconnect and plugin_info as these are already declared in the include file admin.inc.
Plugin authors even go to the extremes of changing the order of the functions in their plugins so that they compile properly without declarations, as if they should receive some award for this. Don't do it - the order of the functions in your source should be determined by one thing and one thing only: Put them in the order that makes it easiest for someone reading your code to understand it.
hmm, wenn ich das so anschaue hab i9ch auch die lösung für mein problem. gute frage :D. ich dachte man müsste nur public functions forwarden. falsch gedacht.
ach, und die admin_randommaps etc. funktionen sind nicht sehr günstig, das ist mir klar. aber das ist ja auch noch kein offizieller release. wie ich bereits auf der ersten seite dieses threads erwähnte, ist das ganze noch nicht sehr "sauber". das hängt auch damit zusammen, dass ich die grundstruktur vor vielen monaten geschrieben habe, als ich noch nicht so viel erfahrung mit AM plugins hatte. einige sachen würde und werde ich heute anders machen.