Oh dear... Another three hours of my life. That comes from learning by copy 'n' paste and rolling the dice:
Code:
public Action:HookRoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
if ...
{
ServerCommand("changelevel \"%s\"", g_nextmap);
return Plugin_Stop;
}
return Plugin_Handled;
}
After I added retrun Plugin_Stop, the compiler warns me, that maybe HookRoundStart needs an return. So I just copied added some return strtring at the end of the function. And obviously - at least together with the Plugin_Handled Constant - it was a really bad idea. :-) But If you like to double your trash boxes on cs_office each round, then try. ;)