Raised This Month: $51 Target: $400
 12% 

Save scores (fixed version)


Post New Thread Reply   
 
Thread Tools Display Modes
szogun
Senior Member
Join Date: Apr 2016
Old 04-10-2017 , 13:36   Re: Save scores (fixed version)
Reply With Quote #11

Hello help me, comiled

Quote:
// C:\Users\xxxx\Desktop\Kompilator amx_sm\kompilator sourcemod\include\tf2_st
ocks.inc(403) : warning 234: symbol "TF2_GetResourceEntity" is marked as depreca
ted: Use GetPlayerResourceEntity instead
// savescores.sp(33 : warning 234: symbol "AskPluginLoad" is marked as depreca
ted: Use AskPluginLoad2() instead
// savescores.sp(397) : warning 234: symbol "GetClientAuthString" is marked as d
eprecated: Use GetClientAuthId
// savescores.sp(446) : warning 234: symbol "TF2_GetPlayerResourceData" is marke
d as deprecated: Use GetPlayerResourceEntity and GetEntProp instead
// savescores.sp(531) : warning 234: symbol "GetClientAuthString" is marked as d
eprecated: Use GetClientAuthId
// savescores.sp(587) : warning 234: symbol "GetClientAuthString" is marked as d
eprecated: Use GetClientAuthId
// savescores.sp(665) : warning 234: symbol "GetClientAuthString" is marked as d
eprecated: Use GetClientAuthId
szogun is offline
AdRiAnIlloO
Member
Join Date: Jul 2015
Location: Spain
Old 09-08-2021 , 12:04   Re: Save scores (fixed version)
Reply With Quote #12

More fixed version (1.3.6). No compiler warnings. Requires SP 1.7+ compiler and multicolors to compile:

https://github.com/Adrianilloo/sm_savescores (Click Code > Download ZIP)

Changelog:
Quote:
- Fix possible memory corruption and/or crashes due to a missing DB locking on a SQL_FastQuery call
- Switch <colors> #include to <multicolors>
- Replace old Steam IDs usage with AuthId_Engine, as scores are temporary, so Steam ID format mismatches with existing data are mostly irrelevant
- Replace unsafe client index in score loading with UserID
- Delay score loading to ensure chat feedback gets displayed
- Add 'player_score' event trigger on score load for interested plugins
- Add Spanish localization. Remove BOM in the translations file.
- Refactor:
- Remove 'onlyCash' array, redundant since version 1.3.5
- Fix warnings under modern SP compiler
- Clean commented code
- Upgrade to transitional syntax. Thanks to @enderandrew.
Attaching release package as well. Extract attached ZIP to <mod_folder>/addons/sourcemod.
Attached Files
File Type: zip sm_savescores.zip (23.9 KB, 59 views)

Last edited by AdRiAnIlloO; 09-24-2021 at 18:28.
AdRiAnIlloO is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode