Hallo!
new Combo[MAX_PLAYERS];
new Combo_Timer[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
KillTimer(Combo_Timer[killerid]);
Combo[killerid]++;
Combo_Timer[killerid] = SetTimerEx("ComboTimer", 10*1000, false, "i", killerid);
return CMB_OnPlayerDeath(playerid, killerid, reason);
}
forward CMB_OnPlayerDeath(playerid, killerid, reason);
#if defined _ALS_OnPlayerDeath
#undef OnPlayerDeath
#else
#define _ALS_OnPlayerDeath
#endif
#define OnPlayerDeath CMB_OnPlayerDeath
//==============================================================================================================================================================================================================================
forward ComboTimer(killerid); //error 055: start of function body without function header
public ComboTimer(killerid)
{ //error 010: invalid function or declaration
Combo[killerid] = 0;
return 1;
}
Die Errors sind im Code kommentiert! Was genau mache ich falsch?