SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Discussion

Reply
 
Thread Tools Display Modes
Old 22/07/2017, 11:45 PM   #671
Kaperstone
High-roller
 
Kaperstone's Avatar
 
Join Date: May 2011
Location: Home
Posts: 3,132
Reputation: 650
Default Re: Today I learned - Share your newly found knowledge!

Quote:
Originally Posted by Vince View Post
Just ****** what the maximum safe voltage for everyday use is for that CPU and keep below that. I've been running my i5-6600K at 4.6 Ghz (up from 3.5 Ghz) at 1.325V for many months now without any issues whatsoever, absolutely stable. The maximum safe voltage for this particular CPU is 1.4V I believe.
I wouldn't recommend it for cpu's that aren't unlocked.
I have i7 4770 (not the K version) and whenever I overclock it, at some point during the day Win' freezed.
Then it had some strange "fading away" effect that Win' kept freezing the next days or two (after I stopped overclocking) and then it turned back normal.
__________________
Find me on GitHub SEF community (Official NEF Successor) Ko ko nut.
Kaperstone is offline   Reply With Quote
Old 23/07/2017, 12:31 AM   #672
Hansrutger
Gangsta
 
Hansrutger's Avatar
 
Join Date: May 2011
Location: Sweden
Posts: 946
Reputation: 158
Default Re: Today I learned - Share your newly found knowledge!

A friend of mine who helped me with overclocking asked me whether my CPU had that K-label or not and just told me to not do anything about the CPU since it didn't have one. I can't touch anything to do with the CPU in MSI Afterburner anyways but I'm sure there's workarounds like Kaperstone mentioned with his case.

\_(ツ)_/
__________________


Hansrutger is offline   Reply With Quote
Old 23/07/2017, 09:39 AM   #673
Dignity
High-roller
 
Dignity's Avatar
 
Join Date: May 2013
Location: Belgium
Posts: 1,770
Reputation: 1037
Default Re: Today I learned - Share your newly found knowledge!

Quote:
Originally Posted by Hansrutger View Post
A friend of mine who helped me with overclocking asked me whether my CPU had that K-label or not and just told me to not do anything about the CPU since it didn't have one. I can't touch anything to do with the CPU in MSI Afterburner anyways but I'm sure there's workarounds like Kaperstone mentioned with his case.

\_(ツ)_/
You're right - just because your CPU doesn't have a "k" in it's name doesn't mean it's not overclockable.

The "k" chips are made with overclocking in mind, whereas the non-k chips aren't (theyre meant to run at factory freqs). There are a lot of steps you can perform for safely overclocking a non-k chip, as long as you don't exceed max voltage your only worry should be heat. Doing a delid and or investing in a AIO cooler will do wonders. Reading up past user experiences helps a whole lot too - chances are someone probably tried overclocking it before, like Vince stated.

You should also only OC in the motherboard, not using a software. The motherboard is a safer environment than a third party program, you will probably see your clocks behave very differently if you boot into it through the motherboard instead of applying it through the program.

Also that monitor resolution issue happens frequently for people with dual monitor setups. I'm not too sure why myself but I imagine GeForce Experience frequently uploads/stores presets when updating drivers, even if you don't press optimize.
__________________


Shoot me or Reyo a PM for more information.
Dignity is offline   Reply With Quote
Old 12/08/2017, 09:45 PM   #674
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 11,045
Reputation: 2647
Default Re: Today I learned - Share your newly found knowledge!

Quote:
Originally Posted by Misiur View Post
ISmokezU: You don't have to repeat your arguments, just use VALUES(column). So, it would be:
Code:
mysql_format(MYSQL, query, sizeof(query)
        ,"INSERT INTO jail (ID, Name, Time, Bail, Cell, Reason) VALUES (%d, '%e', %d, %d, %d, '%s') ON DUPLICATE KEY UPDATE Time = VALUES(Time), Bail = VALUES(Bail), Cell = VALUES(Cell), Reason = VALUES(Reason)"
        , Player[playerid][ID], GetName(playerid), time, bail, GetPlayerVirtualWorld(playerid), reason);
    mysql_tquery(MYSQL, query, "", "");
TIL.
__________________
Vince is offline   Reply With Quote
Old 06/09/2017, 12:55 PM   #675
Y_Less
Spam Machine
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 14,521
Reputation: 2930
Default Re: Today I learned - Share your newly found knowledge!

http://forum.sa-mp.com/showthread.php?t=640660

TIL you don't actually need a space between a number and the next symbol token. It somewhat makes sense since symbols can't start with numerals, I just never tried skipping the space entirely. There is also rarely a case other than macros when symbols can actually legitimately follow numbers without any operator in between.

I did some tests, and these all work amazingly:

PHP Code:
#include <a_samp>

#define eXX
#define _XX
#define xXX
#define bXX

main()
{
    
printf("",
        
0eXX,
        
0bXX,
        
0xXX,
        
0_XX);

More worryingly, guess the output:

PHP Code:
#include <a_samp>

#define xFF

main()
{
    new 
0xFF;
    
printf("a = %d"a);

If pawn had octal this would be even more fun:

PHP Code:
#include <a_samp>

#define xFF 255

main()
{
    new 
0xFF;
    
printf("a = %d"a);

But it doesn't...
Y_Less is offline   Reply With Quote
Old 06/09/2017, 01:06 PM   #676
JasonRiggs
Huge Clucker
 
Join Date: Jul 2016
Location: My bedroom.
Posts: 465
Reputation: 16
Default Re: Today I learned - Share your newly found knowledge!

Quote:
Originally Posted by Y_Less View Post
http://forum.sa-mp.com/showthread.php?t=640660

TIL you don't actually need a space between a number and the next symbol token. It somewhat makes sense since symbols can't start with numerals, I just never tried skipping the space entirely. There is also rarely a case other than macros when symbols can actually legitimately follow numbers without any operator in between.

I did some tests, and these all work amazingly:

PHP Code:
#include <a_samp>

#define eXX
#define _XX
#define xXX
#define bXX

main()
{
    
printf("",
        
0eXX,
        
0bXX,
        
0xXX,
        
0_XX);

More worryingly, guess the output:

PHP Code:
#include <a_samp>

#define xFF

main()
{
    new 
0xFF;
    
printf("a = %d"a);

If pawn had octal this would be even more fun:

PHP Code:
#include <a_samp>

#define xFF 255

main()
{
    new 
0xFF;
    
printf("a = %d"a);

But it doesn't...


That what happens to me when i read a Y Less post...
__________________


Server IP: 185.12.178.71:7799
Website: nyakos-rp.weebly.com
Beta Launched!
JasonRiggs is offline   Reply With Quote
Old 06/09/2017, 01:13 PM   #677
Y_Less
Spam Machine
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 14,521
Reputation: 2930
Default Re: Today I learned - Share your newly found knowledge!

Quote:
Originally Posted by JasonRiggs View Post


That what happens to me when i read a Y Less post...
OK... Do you have anything to say about the content itself? That would be far more useful TBH.
Y_Less is offline   Reply With Quote
Old 06/09/2017, 01:17 PM   #678
JasonRiggs
Huge Clucker
 
Join Date: Jul 2016
Location: My bedroom.
Posts: 465
Reputation: 16
Default Re: Today I learned - Share your newly found knowledge!

Quote:
Originally Posted by Y_Less View Post
OK... Do you have anything to say about the content itself? That would be far more useful TBH.
The content itself is helpful but the method of explanation needs like ages to be understood by the new people in scripting.. just like Eminem in RapGod song takes time to understand what's he saying for natives and other people..
__________________


Server IP: 185.12.178.71:7799
Website: nyakos-rp.weebly.com
Beta Launched!
JasonRiggs is offline   Reply With Quote
Old 06/09/2017, 01:26 PM   #679
Y_Less
Spam Machine
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 14,521
Reputation: 2930
Default Re: Today I learned - Share your newly found knowledge!

Quote:
Originally Posted by JasonRiggs View Post
The content itself is helpful but the method of explanation needs like ages to be understood by the new people in scripting.. just like Eminem in RapGod song takes time to understand what's he saying for natives and other people..
The discussion forum isn't really designed for new scripters. Scripting Help is for learning, Discussion is for more advanced topics and sharing advanced knowledge. I doubt there's any need for a new scripter to need that knowledge (since they never had it before and scripts never suffered), I don't even think there's a need for advanced scripters either, it's just interesting (and borderline bug: https://github.com/Zeex/pawn/issues/183)
Y_Less is offline   Reply With Quote
Old 06/09/2017, 02:20 PM   #680
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 804
Reputation: 62
Default Re: Today I learned - Share your newly found knowledge!

Quote:
Originally Posted by Y_Less View Post
The discussion forum isn't really designed for new scripters. Scripting Help is for learning, Discussion is for more advanced topics and sharing advanced knowledge. I doubt there's any need for a new scripter to need that knowledge (since they never had it before and scripts never suffered), I don't even think there's a need for advanced scripters either, it's just interesting (and borderline bug: https://github.com/Zeex/pawn/issues/183)
It may be a borderline bug, but it could be useful in a form of a macro.
__________________
Jeroen52 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Things you learned from GTA SA Toni Everything and Nothing 212 20/08/2011 08:07 AM
How you learned to script Bam23 Help Archive 9 11/04/2011 11:21 AM
What did u learned today ? rafay Everything and Nothing 170 30/03/2010 05:06 PM


All times are GMT. The time now is 07:38 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.