y_hooks -
Gh0sT_ - 14.05.2011
Hi, Im creating a new TDM mode, and a new .pwn for each system, because its better for me.
Im using y_hooks, but when I compiling main .pwn, I getting
"invalid function or declaration"
at callbacks first line..
example
Hook:maps_public OnGameModeExit()
Hook:maps_public OnGameModeInit()
and so on..
Re: y_hooks -
StilThere - 14.05.2011
You have to use the Module_OnSomeCallback(params) syntax:
pawn Код:
Hook:Maps_OnGameModeExit(){
// code
}
Re: y_hooks -
Gh0sT_ - 14.05.2011
Noup, dont work
Re: y_hooks -
StilThere - 15.05.2011
Post whole code please
Re: y_hooks -
BaubaS - 15.05.2011
Omg, epic fail.

The problem was in public, I dont saw it
Ah, now another problem in first line of this:
pawn Код:
new Maps[5][MapsDB] =
{
{"fy_snow", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 0, 1},
{"de_dust2", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 1, 1},
{"aim_headshot", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 1, 1},
{"de_dustyworld", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 1, 1},
{"fy_aztkill", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 1, 1},
};
Re: y_hooks -
Biesmen - 15.05.2011
pawn Код:
new Maps[5][15] =
{
{"fy_snow", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 0, 1},
{"de_dust2", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 1, 1},
{"aim_headshot", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 1, 1},
{"de_dustyworld", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 1, 1},
{"fy_aztkill", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 1, 1},
};
Re: y_hooks -
BaubaS - 15.05.2011
Im just getting a lot of warnings and some errors.
Re: y_hooks -
Biesmen - 15.05.2011
How did you define MapsDB.
Re: y_hooks -
BaubaS - 15.05.2011
Its an enumerator.
Re: y_hooks -
BaubaS - 15.05.2011
Bump