Surftimer
Surftimer copied to clipboard
fix errors for sourcemod 1.10
This pr causes the following errors when compiling
// surftimer/misc.sp(1947) : error 047: array sizes do not match, or destination array is too small
// surftimer/misc.sp(1951) : error 047: array sizes do not match, or destination array is too small
// surftimer/buttonpress.sp(254) : error 047: array sizes do not match, or destination array is too small
// surftimer/buttonpress.sp(291) : error 047: array sizes do not match, or destination array is too small
// surftimer/buttonpress.sp(581) : error 047: array sizes do not match, or destination array is too small
// surftimer/buttonpress.sp(593) : error 047: array sizes do not match, or destination array is too small
// surftimer/buttonpress.sp(696) : error 047: array sizes do not match, or destination array is too small
// surftimer/buttonpress.sp(706) : error 047: array sizes do not match, or destination array is too small
What version of SM does that error occur with? I haven't had any compiling errors.
SourcePawn Compiler 1.10.0.6458
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2018 AlliedModders LLC
SurfTimer.sp(382) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
SurfTimer.sp(408) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
surftimer/misc.sp(1260) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
surftimer/misc.sp(1260) : warning 234: symbol "FloatAdd" is marked as deprecated: This native is internal implementation. For addition use the '+' operator.
surftimer/misc.sp(1274) : warning 234: symbol "FloatMul" is marked as deprecated: This native is internal implementation. For multiplication use the '*' operator.
surftimer/misc.sp(1275) : warning 234: symbol "FloatMul" is marked as deprecated: This native is internal implementation. For multiplication use the '*' operator.
surftimer/misc.sp(1273) : warning 204: symbol is assigned a value that is never used: "speed"
surftimer/misc.sp(1552) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
surftimer/misc.sp(1563) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
surftimer/misc.sp(1574) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
surftimer/misc.sp(1585) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
surftimer/misc.sp(1623) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
surftimer/misc.sp(1881) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
surftimer/misc.sp(2397) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
surftimer/misc.sp(2505) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
surftimer/misc.sp(2564) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
surftimer/misc.sp(2595) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
surftimer/misc.sp(4070) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
surftimer/misc.sp(4096) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
surftimer/sql.sp(1761) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
surftimer/sql.sp(4527) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
surftimer/sql.sp(4528) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
surftimer/sql.sp(4529) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
surftimer/commands.sp(2095) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
surftimer/commands.sp(2406) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
surftimer/commands.sp(2407) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
surftimer/commands.sp(2408) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
surftimer/buttonpress.sp(456) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
surftimer/replay.sp(879) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
surftimer/replay.sp(896) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
surftimer/replay.sp(917) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
surftimer/surfzones.sp(1933) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
surftimer/surfzones.sp(1934) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
surftimer/surfzones.sp(1935) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
surftimer/surfzones.sp(2047) : warning 234: symbol "FloatAdd" is marked as deprecated: This native is internal implementation. For addition use the '+' operator.
surftimer/surfzones.sp(2051) : warning 234: symbol "FloatSub" is marked as deprecated: This native is internal implementation. For subtraction use the '-' operator.
surftimer/surfzones.sp(2055) : warning 234: symbol "FloatAdd" is marked as deprecated: This native is internal implementation. For addition use the '+' operator.
surftimer/surfzones.sp(2059) : warning 234: symbol "FloatSub" is marked as deprecated: This native is internal implementation. For subtraction use the '-' operator.
surftimer/surfzones.sp(2063) : warning 234: symbol "FloatAdd" is marked as deprecated: This native is internal implementation. For addition use the '+' operator.
surftimer/surfzones.sp(2067) : warning 234: symbol "FloatSub" is marked as deprecated: This native is internal implementation. For subtraction use the '-' operator.
surftimer/cvote.sp(110) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
SurfTimer.sp(14) : warning 203: symbol is never used: "revertServerHibernateSettings"
SurfTimer.sp(1) : warning 203: symbol is never used: "disableServerHibernate"
SurfTimer.sp(559) : warning 203: symbol is never used: "g_rankNameChatColour"
Code size: 862416 bytes
Data size: 3263040 bytes
Stack/heap size: 16384 bytes
Total requirements: 4141840 bytes
44 Warnings.
I was wrong, it doesn't cause any problems, but fixes 6 errors. So my apologies and good job!
There's still 2 errors remaining in the surfTimer for latest 1.10, unrelated to your commit I think
//// surftimer.sp
//
// F:\csgoSerwer\csgoSurf\sourcemod\scripting-1.10\include\smlib/colors.inc(78) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer.sp(382) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer.sp(408) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer/misc.sp(1260) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
//
//
// surftimer/misc.sp(1260) : warning 234: symbol "FloatAdd" is marked as deprecated: This native is internal implementation. For addition use the '+' operator.
//
//
// surftimer/misc.sp(1274) : warning 234: symbol "FloatMul" is marked as deprecated: This native is internal implementation. For multiplication use the '*' operator.
//
//
// surftimer/misc.sp(1275) : warning 234: symbol "FloatMul" is marked as deprecated: This native is internal implementation. For multiplication use the '*' operator.
//
//
// surftimer/misc.sp(1273) : warning 204: symbol is assigned a value that is never used: "speed"
// surftimer/misc.sp(1552) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
//
//
// surftimer/misc.sp(1563) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
//
//
// surftimer/misc.sp(1574) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
//
//
// surftimer/misc.sp(1585) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
//
//
// surftimer/misc.sp(1623) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
//
//
// surftimer/misc.sp(1881) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
//
//
// surftimer/misc.sp(2397) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer/misc.sp(2505) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer/misc.sp(2564) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer/misc.sp(2595) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer/misc.sp(4070) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
//
//
// surftimer/misc.sp(4096) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
//
//
// surftimer/sql.sp(1761) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer/sql.sp(4527) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
//
//
// surftimer/sql.sp(4528) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
//
//
// surftimer/sql.sp(4529) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
//
//
// surftimer/commands.sp(2095) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer/commands.sp(2406) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
//
//
// surftimer/commands.sp(2407) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
//
//
// surftimer/commands.sp(2408) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
//
//
// surftimer/buttonpress.sp(254) : error 047: array sizes do not match, or destination array is too small
// surftimer/buttonpress.sp(291) : error 047: array sizes do not match, or destination array is too small
// surftimer/buttonpress.sp(456) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
//
//
// surftimer/replay.sp(879) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer/replay.sp(896) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer/replay.sp(917) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// surftimer/surfzones.sp(1933) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
//
//
// surftimer/surfzones.sp(1934) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
//
//
// surftimer/surfzones.sp(1935) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
//
//
// surftimer/surfzones.sp(2047) : warning 234: symbol "FloatAdd" is marked as deprecated: This native is internal implementation. For addition use the '+' operator.
//
//
// surftimer/surfzones.sp(2051) : warning 234: symbol "FloatSub" is marked as deprecated: This native is internal implementation. For subtraction use the '-' operator.
//
//
// surftimer/surfzones.sp(2055) : warning 234: symbol "FloatAdd" is marked as deprecated: This native is internal implementation. For addition use the '+' operator.
//
//
// surftimer/surfzones.sp(2059) : warning 234: symbol "FloatSub" is marked as deprecated: This native is internal implementation. For subtraction use the '-' operator.
//
//
// surftimer/surfzones.sp(2063) : warning 234: symbol "FloatAdd" is marked as deprecated: This native is internal implementation. For addition use the '+' operator.
//
//
// surftimer/surfzones.sp(2067) : warning 234: symbol "FloatSub" is marked as deprecated: This native is internal implementation. For subtraction use the '-' operator.
//
//
// surftimer/cvote.sp(110) : warning 234: symbol "FloatDiv" is marked as deprecated: This native is internal implementation. For division use the '/' operator.
//
//
// surftimer.sp(14) : warning 203: symbol is never used: "revertServerHibernateSettings"
// surftimer.sp(1) : warning 203: symbol is never used: "disableServerHibernate"
// surftimer.sp(559) : warning 203: symbol is never used: "g_rankNameChatColour"
//
// 2 Errors.