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

Auto-Mix (Pug) - By: p1Mp


Post New Thread Reply   
 
Thread Tools Display Modes
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 08-16-2012 , 13:26   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #401

But I changed it all to _ID_
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 08-16-2012 , 14:20   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #402

Quote:
Originally Posted by Diegorkable View Post
But I changed it all to _ID_
It work well, but I think you should optimize the code.

For example, instead of,

PHP Code:
SaveStats(id)
{
    if ( 
is_user_hltv(id) || is_user_bot(id) || !get_pcvar_num(cvar_RanksSystem) )
        return;
        
    new 
authid[35]
    
get_user_authid(idauthidsizeof(authid) - 1)
      
    if (
gPoints[id] < 0)
        
gPoints[id] = 0

    
if (containi(authid"_ID_") != -1)
        return
    
    new 
data[16]
    
num_to_str(gPoints[id], datasizeof(data) - 1)
    
fvault_set_data(gPointsVaultauthiddata)    
      
    return;

You can substitute to,

PHP Code:
SaveStats(id)
{
    if ( 
is_user_ignored[id] || !get_pcvar_num(cvar_RanksSystem)) // --> look at here
        
return;
      
    if (
gPoints[id] < 0)
        
gPoints[id] = 0
    
    
new data[16]
    
num_to_str(gPoints[id], datasizeof(data) - 1)
    
fvault_set_data(gPointsVaultauthiddata)    
      
    return;

I think it's more readable

Last edited by guipatinador; 08-16-2012 at 14:25.
guipatinador is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 08-16-2012 , 19:04   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #403

Ahh I understand, might add that to the next release, thanks
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
cisse3
Junior Member
Join Date: May 2009
Old 08-23-2012 , 09:53   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #404

Hey, I've been away for a while..

When i came back, i noticed some updates and i wanted to try them while the this error came up again:
http://**************/f/194/pluginerror.jpg/

I hope you can fix it again.

Oh, and yes, i unistalled the previous versions and installed the new ones..
cisse3 is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 08-23-2012 , 10:06   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #405

You need to compile the plugin yourself, you know that?
Here is a TUT: http://forums.alliedmods.net/showthread.php?t=130511
I asked several approvers to give me the permission to upload .amxx files, or I asked them if they can upload the .amxx themselves because some people do that, still they refuse or not answer.

So, you need to compile it yourself, click on "Get Source" to get the .sma file.
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-23-2012 , 10:08   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #406

NOTE: These files may be outdated. It is recommended you compile the files yourself to make sure you always have the latest versions.


Attached are the compiled copies of the files (SMA compiled from is in the attached ZIP file). These are compiled against 1.8.2. Please let me or another approver know when you need them to be recompiled and we can update this post (so you can create a link in the first post linking to this post if you wish)


Compiler Output:
Code:
C:\fakepath>amxxpc pimpspug.sma
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Header size:           5352 bytes
Code size:           156208 bytes
Data size:           259344 bytes
Stack/heap size:      81920 bytes; max. usage is unknown, due to recursion
Total requirements:  502824 bytes
Done.

C:\fakepath>amxxpc stats_pug.sma
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Header size:           2524 bytes
Code size:            46876 bytes
Data size:            55864 bytes
Stack/heap size:      16384 bytes; max. usage is unknown, due to recursion
Total requirements:  121648 bytes
Done.
Updated: 7/19/2014
Attached Files
File Type: zip auto-mix_source_code.zip (36.5 KB, 1778 views)
File Type: amxx pimpspug.amxx (57.2 KB, 1612 views)
File Type: amxx stats_pug.amxx (19.2 KB, 1197 views)

Last edited by YamiKaitou; 07-19-2014 at 20:35.
YamiKaitou is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 08-23-2012 , 12:22   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #407

I don't get why you posted them. The point is that I'll post it on the first post, and I'm not sure the sma in the zip file is updated, I update the one that is attached above the rar file.

I really want to simply upload the .amxx file to that thread but no approver answering my request.
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-23-2012 , 12:45   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #408

Quote:
Originally Posted by Diegorkable View Post
I don't get why you posted them.
Because I am an Approver and a Moderator. You did say that nobody was answering you PMs


Quote:
The point is that I'll post it on the first post
I can put them there if you want. The point in me attaching it to my post was so you could just link to my post and other users would be able to download the AMXX files if they don't feel like compiling it themselves. This also helps prevents you (not saying you would) from uploading an AMXX file with a backdoor.


Quote:
I'm not sure the sma in the zip file is updated, I update the one that is attached above the rar file.
Do you want me to recompile it with the individually attached SMA files or with the SMA files in the ZIP? Or do you want me to leave it as it is?


Quote:
I really want to simply upload the .amxx file to that thread but no approver answering my request.
If an Approver/Moderator has not reached out to you and granted you this right, then no. You should not be asking us for this right, we will let you know if and when we make the decision.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 08-23-2012 , 13:09   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #409

WOOPS lol sorry, didn't notice you were a moderator, I consumed you're a regular user and I was suprised to see you uploaded an .amxx.

The right I was asking for is if I could give an approver the .sma and he can compile it and upload it to the main thread, with no links, simply attach.

You can easy see if I put up another one, by seeing who edited the thread last.

I'd like if you can please recompile the .sma, but use the .sma that I attached in the primary post, the one NOT in the RAR file, download the .RAR file to your computer, put the AMXX files in the plugins folder, and RE upload the RAR file.

Thanks man, and just to clarify, I don't rage at the moderators, I said I WISH I could upload myself the .amxx, which ofcourse I didn't cuz I can't. I respect that the approvers / moderators are real busy and that's why I ask from time to time and not rage / spam them with requests.
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-24-2012 , 13:21   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #410

Post 406 updated with the new AMXX files
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Old 08-24-2012, 13:27
Terry04Messer
This message has been deleted by YamiKaitou. Reason: wait 14 days until you bump
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 15:51.


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