Quote:
Originally Posted by user2000
Code:
//// rainbow_player.sp
//
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(41) : warning 217: inconsistent indentation (did you mix tabs and spaces?)
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(44) : warning 242: function "Event_PlayerDeath" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(49) : warning 242: function "Event_RE" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(59) : warning 242: function "Command_Rainbow" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(64) : warning 242: function "Command_RainbowOff" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(69) : warning 209: function has explicit 'int' tag but does not return a value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(69) : warning 209: function has explicit 'int' tag but does not return a value
// Code size: 10136 bytes
// Data size: 3456 bytes
// Stack/heap size: 16468 bytes
// Total requirements: 30060 bytes
//
// 7 Warnings.
//
// Compilation Time: 0.94 sec
// ----------------------------------------
|
Here it seems to have compiled on SourceMod 1.11.0.6905 without warnings.
I just had to add in some places:
return 0; and return Plugin_Handled;