Closed ip-gamers closed 1 year ago
I was informed of problems with compilation on SM 1.11. //// free_camera.sp // // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(237) : error 105: cannot find method or property "Cookie.GetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(238) : error 105: cannot find method or property "Cookie.GetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(239) : error 105: cannot find method or property "Cookie.GetFloat" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(306) : error 105: cannot find method or property "Cookie.SetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(316) : error 105: cannot find method or property "Cookie.SetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(352) : error 105: cannot find method or property "Cookie.SetFloat" // // 6 Errors. // // Compilation Time: 1,37 sec // ----------------------------------------
Is it possible to eliminate them in some way?
In SM 1.11, these grammars didn't get support, so my suggestion is using SM 1.12 to compile it.
But if you need, you could fix them by following these:
at line 237:
g_bMenuHint[client] = view_as<bool>(g_hCameraCookies[CAMERA_HINT_ITEM].GetInt(client, 1));
should be replaced for:
char buffer[16];
g_hCameraCookies[CAMERA_HINT_ITEM].Get(client, buffer, sizeof(buffer));
g_bMenuHint[client] = view_as<bool>(StringToInt(buffer));
for "GetInt" use "StringToInt", for "GetFloat" use "StringToFloat"
at line 306:
g_hCameraCookies[info].SetInt(client, g_bAutoCamera[client]);
should be replaced for:
char buffer[16];
IntToString(g_bAutoCamera[client], buffer, sizeof(buffer));
g_hCameraCookies[info].Set(client, buffer);
for "SetInt" use "IntToString", for "SetFloat" use "FloatToString"
The plugin still refuses to compile.
What did error report?
The plugin still refuses to compile.
Please provide error messages.
// D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(240) : error 105: cannot find method or property "Cookie.GetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(241) : error 105: cannot find method or property "Cookie.GetFloat" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(320) : error 105: cannot find method or property "Cookie.SetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(356) : error 105: cannot find method or property "Cookie.SetFloat"
// D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(240) : error 105: cannot find method or property "Cookie.GetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(241) : error 105: cannot find method or property "Cookie.GetFloat" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(320) : error 105: cannot find method or property "Cookie.SetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(356) : error 105: cannot find method or property "Cookie.SetFloat"
These problems are the same as line 237 and line 306, so the way to slove them is also the same.
If you want to translate the plugin to your language, just wait new version. I have already add multilanguage support for new version, so that you won't need to compile it from then on. You will be able to add your language at 'freecamera.phrases.txt' file.
I was informed of problems with compilation on SM 1.11. //// free_camera.sp // // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(237) : error 105: cannot find method or property "Cookie.GetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(238) : error 105: cannot find method or property "Cookie.GetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(239) : error 105: cannot find method or property "Cookie.GetFloat" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(306) : error 105: cannot find method or property "Cookie.SetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(316) : error 105: cannot find method or property "Cookie.SetInt" // D:\Sourcemod\addons\sourcemod\scripting\free_camera.sp(352) : error 105: cannot find method or property "Cookie.SetFloat" // // 6 Errors. // // Compilation Time: 1,37 sec // ----------------------------------------
Is it possible to eliminate them in some way?