PHP Code:
g_hCvar_Trail_Enable = CreateConVar("sm_trail_enable", "1", "Enable or Disable all features of the plugin.", true, 0.0, true, 1.0);
g_hCvar_Trail_AdminOnly = CreateConVar("sm_trail_adminonly", "0", "Enable trails only for Admins (VOTE Flag).", true, 0.0, true, 1.0);
g_hCvar_Trail_Duration = CreateConVar("sm_trail_duration", "5.0", "Duration of the trail.", true, 1.0, true, 100.0);
g_hCvar_Trail_Fade_Duration = CreateConVar("sm_trail_fade_duration", "3", "Duration of the trail.", true, 1.0, true, 100.0);
g_hCvar_Trail_Width = CreateConVar("sm_trail_width", "5.0", "Width of the trail.", true, 1.0, true, 100.0);
g_hCvar_Trail_End_Width = CreateConVar("sm_trail_end_width", "1.0", "Width of the trail.", true, 1.0, true, 100.0);
g_hCvar_Trail_Per_Round = CreateConVar("sm_trail_per_round", "5", "How many times per round a client can use the command.", true, 1.0, true, 100.0);
Example:
https://wiki.alliedmods.net/ConVars_...eating_ConVars
Warning:
Quote:
//// playertrails.sp
//
// playertrails.sp(51) : warning 213: tag mismatch
// playertrails.sp(51) : warning 213: tag mismatch
// playertrails.sp(51) : warning 213: tag mismatch
// playertrails.sp(52) : warning 213: tag mismatch
// playertrails.sp(52) : warning 213: tag mismatch
// playertrails.sp(52) : warning 213: tag mismatch
// playertrails.sp(53) : warning 213: tag mismatch
// playertrails.sp(53) : warning 213: tag mismatch
// playertrails.sp(53) : warning 213: tag mismatch
// playertrails.sp(54) : warning 213: tag mismatch
// playertrails.sp(54) : warning 213: tag mismatch
// playertrails.sp(54) : warning 213: tag mismatch
// playertrails.sp(55) : warning 213: tag mismatch
// playertrails.sp(55) : warning 213: tag mismatch
// playertrails.sp(55) : warning 213: tag mismatch
// playertrails.sp(56) : warning 213: tag mismatch
// playertrails.sp(56) : warning 213: tag mismatch
// playertrails.sp(56) : warning 213: tag mismatch
// playertrails.sp(57) : warning 213: tag mismatch
// playertrails.sp(57) : warning 213: tag mismatch
// playertrails.sp(57) : warning 213: tag mismatch
// Code size: 17424 bytes
// Data size: 6160 bytes
// Stack/heap size: 16384 bytes
// Total requirements: 39968 bytes
//
// 21 Warnings.
//
// Compilation Time: 0,31 sec
// ----------------------------------------
|
Why i got warnings with values and if i delete ..., true, 0.1, true, 1.0) blabla??