PHP Code:
C:\Programming\SorucePawn\Compile\include\tfcsfunc/tfcs_cooldown.inc(15) : error 181: function argument named 'ctype' differs from prototype
this is the code...
PHP Code:
forward Action TFCS_CoolOnAction(client, CoolType ctype, CoolFlag cflag, Float:dist, Float:before, Float:after)
and this is the type of variable
PHP Code:
enum CoolType {
CT_Primary = 1,
CT_Secondary = 2,
CT_Melee = 3,
CT_Special,
CT_Special2,
CT_SpecialFire,
CT_ETC
};
enum CoolFlag (<<= 1) {
CF_End = ( 1 << 0 ),
CF_Start,
CF_Change
};
and this is forward calling function on core plugin
PHP Code:
stock Action:CallOnCoolTimeActionFwd(client, CoolType type, CoolFlag flag, Float:dist, Float:bef, Float:aft) {
new Action:result;
Call_StartForward(g_hFwdCoolTimeAction);
Call_PushCell(client);
Call_PushCellRef(type);
Call_PushCellRef(flag);
Call_PushFloat(dist);
Call_PushFloat(bef);
Call_PushFloat(aft);
Call_Finish(result);
return result;
}
I want to make a forward for having compatibility to enumerations...
How can I fix this?