Raysko Posté(e) le 5 mars 2015 Share Posté(e) le 5 mars 2015 Bonjour pouvais vour me dire ou et l'erreur dans ce code svp car quand je compile sa me mais "erreur undifined "Steam_SetGameDescrtiption et vue que j'y connais pas grand chose bah je c'est pas c'est quoi,il me dise que sa provient de la ligne 54 voila merci d'avance #include <sourcemod>#include <cstrike> #include <sdkhooks> #include <hosties> new Handle:gH_Cvar_GameDescriptionOn = INVALID_HANDLE; new bool:gShadow_GameDescriptionOn; new Handle:gH_Cvar_GameDescriptionTag = INVALID_HANDLE; new String:gShadow_GameDescriptionTag[64]; new bool:g_bSTAvailable = false; // SteamTools GameDescription_OnPluginStart() { gH_Cvar_GameDescriptionOn = CreateConVar("sm_hosties_override_gamedesc", "1", "Enable or disable an override of the game description (standard Counter-Strike: Source, override to Hosties/jailbreak): 0 - disable, 1 - enable", FCVAR_PLUGIN, true, 0.0, true, 1.0); gShadow_GameDescriptionOn = true; gH_Cvar_GameDescriptionTag = CreateConVar("sm_hosties_gamedesc_tag", "Ba_Jail v1 Dev", "Sets the game description tag.", FCVAR_PLUGIN); Format(gShadow_GameDescriptionTag, sizeof(gShadow_GameDescriptionTag), "Ba_Jail v1 Dev"); HookConVarChange(gH_Cvar_GameDescriptionOn, GameDescription_CvarChanged); HookConVarChange(gH_Cvar_GameDescriptionTag, GameDescription_CvarChanged); // check for SteamTools if (GetFeatureStatus(FeatureType_Native, "Steam_SetGameDescription") == FeatureStatus_Available) { g_bSTAvailable = true; } } public GameDescription_CvarChanged(Handle:cvar, const String:oldValue[], const String:newValue[]) { if (cvar == gH_Cvar_GameDescriptionOn) { gShadow_GameDescriptionOn = bool:StringToInt(newValue); } else if (cvar == gH_Cvar_GameDescriptionTag) { Format(gShadow_GameDescriptionTag, sizeof(gShadow_GameDescriptionTag), newValue); if (gShadow_GameDescriptionOn && g_bSTAvailable) { Steam_SetGameDescription(gShadow_GameDescriptionTag); } } } GameDesc_OnConfigsExecuted() { gShadow_GameDescriptionOn = GetConVarBool(gH_Cvar_GameDescriptionOn); GetConVarString(gH_Cvar_GameDescriptionTag, gShadow_GameDescriptionTag, sizeof(gShadow_GameDescriptionTag)); if (gShadow_GameDescriptionOn && g_bSTAvailable) { Steam_SetGameDescription(gShadow_GameDescriptionTag); } } Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Vital Posté(e) le 5 mars 2015 Share Posté(e) le 5 mars 2015 Essaye sa : #include <sourcemod>#include <cstrike> #include <sdkhooks> #include <hosties> new Handle:gH_Cvar_GameDescriptionOn = INVALID_HANDLE; new bool:gShadow_GameDescriptionOn; new Handle:gH_Cvar_GameDescriptionTag = INVALID_HANDLE; new String:gShadow_GameDescriptionTag[64]; new bool:g_bSTAvailable = false; // SteamTools GameDescription_OnPluginStart() { gH_Cvar_GameDescriptionOn = CreateConVar("sm_hosties_override_gamedesc", "1", "Enable or disable an override of the game description (standard Counter-Strike: Source, override to Hosties/jailbreak): 0 - disable, 1 - enable", FCVAR_PLUGIN, true, 0.0, true, 1.0); gShadow_GameDescriptionOn = true; gH_Cvar_GameDescriptionTag = CreateConVar("sm_hosties_gamedesc_tag", "Hosties/Jailbreak v2", "Sets the game description tag.", FCVAR_PLUGIN); Format(gShadow_GameDescriptionTag, sizeof(gShadow_GameDescriptionTag), "Hosties/Jailbreak v2"); HookConVarChange(gH_Cvar_GameDescriptionOn, GameDescription_CvarChanged); HookConVarChange(gH_Cvar_GameDescriptionTag, GameDescription_CvarChanged); // check for SteamTools if (GetFeatureStatus(FeatureType_Native, "Steam_SetGameDescription") == FeatureStatus_Available) { g_bSTAvailable = true; } } public GameDescription_CvarChanged(Handle:cvar, const String:oldValue[], const String:newValue[]) { if (cvar == gH_Cvar_GameDescriptionOn) { gShadow_GameDescriptionOn = bool:StringToInt(newValue); } else if (cvar == gH_Cvar_GameDescriptionTag) { Format(gShadow_GameDescriptionTag, sizeof(gShadow_GameDescriptionTag), newValue); if (gShadow_GameDescriptionOn && g_bSTAvailable) { Steam_SetGameDescription(gShadow_GameDescriptionTag); } } } GameDesc_OnConfigsExecuted() { gShadow_GameDescriptionOn = GetConVarBool(gH_Cvar_GameDescriptionOn); GetConVarString(gH_Cvar_GameDescriptionTag, gShadow_GameDescriptionTag, sizeof(gShadow_GameDescriptionTag)); if (gShadow_GameDescriptionOn && g_bSTAvailable) { Steam_SetGameDescription(gShadow_GameDescriptionTag); } } La ou je les trouvé : http://websvn.dataviruset.com/filedetails.php?repname=hosties2&path=%2Fhosties2%2Faddons%2Fsourcemod%2Fscripting%2Fhosties%2Fgamedescription.sp Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Raysko Posté(e) le 5 mars 2015 Auteur Share Posté(e) le 5 mars 2015 Merci mes la quand je compile ya 4 error et sur le premier y'ena que une Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Vital Posté(e) le 5 mars 2015 Share Posté(e) le 5 mars 2015 #include <sourcemod> #include <cstrike> #include <sdkhooks> #include <hosties> #include <steamtools> new Handle:gH_Cvar_GameDescriptionOn = INVALID_HANDLE; new bool:gShadow_GameDescriptionOn; new Handle:gH_Cvar_GameDescriptionTag = INVALID_HANDLE; new String:gShadow_GameDescriptionTag[64]; new bool:g_bSTAvailable = false; // SteamTools GameDescription_OnPluginStart() { gH_Cvar_GameDescriptionOn = CreateConVar("sm_hosties_override_gamedesc", "1", "Enable or disable an override of the game description (standard Counter-Strike: Source, override to Hosties/jailbreak): 0 - disable, 1 - enable", FCVAR_PLUGIN, true, 0.0, true, 1.0); gShadow_GameDescriptionOn = true; gH_Cvar_GameDescriptionTag = CreateConVar("sm_hosties_gamedesc_tag", "Ba_Jail v1 Dev", "Sets the game description tag.", FCVAR_PLUGIN); Format(gShadow_GameDescriptionTag, sizeof(gShadow_GameDescriptionTag), "Ba_Jail v1 Dev"); HookConVarChange(gH_Cvar_GameDescriptionOn, GameDescription_CvarChanged); HookConVarChange(gH_Cvar_GameDescriptionTag, GameDescription_CvarChanged); // check for SteamTools if (GetFeatureStatus(FeatureType_Native, "Steam_SetGameDescription") == FeatureStatus_Available) { g_bSTAvailable = true; } } public GameDescription_CvarChanged(Handle:cvar, const String:oldValue[], const String:newValue[]) { if (cvar == gH_Cvar_GameDescriptionOn) { gShadow_GameDescriptionOn = bool:StringToInt(newValue); } else if (cvar == gH_Cvar_GameDescriptionTag) { Format(gShadow_GameDescriptionTag, sizeof(gShadow_GameDescriptionTag), newValue); if (gShadow_GameDescriptionOn && g_bSTAvailable) { Steam_SetGameDescription(gShadow_GameDescriptionTag); } } } GameDesc_OnConfigsExecuted() { gShadow_GameDescriptionOn = GetConVarBool(gH_Cvar_GameDescriptionOn); GetConVarString(gH_Cvar_GameDescriptionTag, gShadow_GameDescriptionTag, sizeof(gShadow_GameDescriptionTag)); if (gShadow_GameDescriptionOn && g_bSTAvailable) { Steam_SetGameDescription(gShadow_GameDescriptionTag); } } Voila je les corigé . Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Raysko Posté(e) le 5 mars 2015 Auteur Share Posté(e) le 5 mars 2015 Merci beaucoup je teste sa et jte dit EDIT : Non toujours pareil Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Vital Posté(e) le 5 mars 2015 Share Posté(e) le 5 mars 2015 Chez moi sa fonctione . ta qu'elle version de sourcemod ? Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
KIL3R62 Posté(e) le 5 mars 2015 Share Posté(e) le 5 mars 2015 Tu avais juste a mettre <steamtools> dans ton plugin. Oublie pas de mettre l'include steamtools sur ton serveur, y compris dans le dossier include de ton compiler sinon sa ne marchera pas. Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Vital Posté(e) le 5 mars 2015 Share Posté(e) le 5 mars 2015 (modifié) Change de version de sourcemod .. prend pas la derniere . Modifié le 5 mars 2015 par Vital Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Messages recommandés
Rejoindre la conversation
Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.