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

[ANY] Store by Zephyrus [1.1 - 03.01.2016]


Post New Thread Reply   
 
Thread Tools Display Modes
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 12-30-2015 , 15:12   Re: [ANY] Store by Zephyrus
Reply With Quote #111

Quote:
Originally Posted by oaaron99 View Post
Php function to convert the auth to steamid:
PHP Code:

function toSteamID($id) {
    if (
is_numeric($id) && strlen($id) >= 16) {
        
$z bcdiv(bcsub($id'76561197960265728'), '2');
    } elseif (
is_numeric($id)) {
        
$z bcdiv($id'2'); // Actually new User ID format
    
} else {
        return 
$id// We have no idea what this is, so just return it.
    
}
    
$y bcmod($id'2');
    return 
'STEAM_0:' $y ':' floor($z);

Thanks !!

EDIT: It's hard to go back to sql. Still doing it, but, yeah, will take a bit of time.
__________________
Want to check my plugins ?

Last edited by Arkarr; 12-30-2015 at 15:24.
Arkarr is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 12-30-2015 , 15:33   Re: [ANY] Store by Zephyrus
Reply With Quote #112

Woah... hudge jump in past (damn it, sql). Here we go, the SQL function to do to transfer the credits rom rederswolfe store to zephy store :
PHP Code:
SET @DATABASE_NAME_REDERWOLF 'store';
SET @DATABASE_NAME_ZEPHYRUS 'store2';

DELIMITER $$
DROP FUNCTION IF EXISTS `toSteamID`$$
CREATE FUNCTION toSteamID(id TEXT)
  
RETURNS TEXT
  LANGUAGE SQL
BEGIN
  
RETURN CONCAT("STEAM_0:",id%2,":",floor(id/2));
END;
$$
DELIMITER ;

SET @CONCAT('UPDATE ', @DATABASE_NAME_ZEPHYRUS'.store_players, ', @DATABASE_NAME_REDERWOLF'.store_users',
                
' SET ', @DATABASE_NAME_ZEPHYRUS'.store_players.credits=', @DATABASE_NAME_REDERWOLF,'.store_users.credits',
                
' WHERE toSteamID(', @DATABASE_NAME_REDERWOLF'.store_users.auth)''=CONCAT("STEAM_0:",', @DATABASE_NAME_ZEPHYRUS'.store_players.authid)');
select @q;
PREPARE stmt FROM @q;
EXECUTE stmt;
DEALLOCATE PREPARE stmt
Need to be executed on the server who have the both database.


EDIT:

OLD POST !
See this instend : https://forums.alliedmods.net/showpo...&postcount=132
__________________
Want to check my plugins ?

Last edited by Arkarr; 12-31-2015 at 05:45.
Arkarr is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 12-30-2015 , 17:08   Re: [ANY] Store by Zephyrus
Reply With Quote #113

Quote:
Originally Posted by Arkarr View Post
Woah... hudge jump in past (damn it, sql). Here we go, the SQL function to do to transfer the credits rom rederswolfe store to zephy store :
PHP Code:
SET @DATABASE_NAME_REDERWOLF 'store';
SET @DATABASE_NAME_ZEPHYRUS 'store2';

DELIMITER $$
DROP FUNCTION IF EXISTS `toSteamID`$$
CREATE FUNCTION toSteamID(id TEXT)
  
RETURNS TEXT
  LANGUAGE SQL
BEGIN
  
RETURN CONCAT("STEAM_0:",id%2,":",floor(id/2));
END;
$$
DELIMITER ;

SET @CONCAT('UPDATE ', @DATABASE_NAME_ZEPHYRUS'.store_players, ', @DATABASE_NAME_REDERWOLF'.store_users',
                
' SET ', @DATABASE_NAME_ZEPHYRUS'.store_players.credits=', @DATABASE_NAME_REDERWOLF,'.store_users.credits',
                
' WHERE toSteamID(', @DATABASE_NAME_REDERWOLF'.store_users.auth)''=CONCAT("STEAM_0:",', @DATABASE_NAME_ZEPHYRUS'.store_players.authid)');
select @q;
PREPARE stmt FROM @q;
EXECUTE stmt;
DEALLOCATE PREPARE stmt
Need to be executed on the server who have the both database.
Be cool if you could make one to transfer all the users over too.

I would do it myself but I am horrible with sql
Addicted. is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 12-30-2015 , 17:18   Re: [ANY] Store by Zephyrus
Reply With Quote #114

Quote:
Originally Posted by Bara View Post
After you've enough money?
and both cases it was you who released it on the russian forums
not just russian forums; i posted it on some other site for people who want to test skins on their private servers and i got this pm on the site


lol
__________________
retired
shavit is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 12-30-2015 , 17:19   Re: [ANY] Store by Zephyrus
Reply With Quote #115

Quote:
Originally Posted by Arkarr View Post
Woah... hudge jump in past (damn it, sql). Here we go, the SQL function to do to transfer the credits rom rederswolfe store to zephy store :
PHP Code:
SET @DATABASE_NAME_REDERWOLF 'store';
SET @DATABASE_NAME_ZEPHYRUS 'store2';

DELIMITER $$
DROP FUNCTION IF EXISTS `toSteamID`$$
CREATE FUNCTION toSteamID(id TEXT)
  
RETURNS TEXT
  LANGUAGE SQL
BEGIN
  
RETURN CONCAT("STEAM_0:",id%2,":",floor(id/2));
END;
$$
DELIMITER ;

SET @CONCAT('UPDATE ', @DATABASE_NAME_ZEPHYRUS'.store_players, ', @DATABASE_NAME_REDERWOLF'.store_users',
                
' SET ', @DATABASE_NAME_ZEPHYRUS'.store_players.credits=', @DATABASE_NAME_REDERWOLF,'.store_users.credits',
                
' WHERE toSteamID(', @DATABASE_NAME_REDERWOLF'.store_users.auth)''=CONCAT("STEAM_0:",', @DATABASE_NAME_ZEPHYRUS'.store_players.authid)');
select @q;
PREPARE stmt FROM @q;
EXECUTE stmt;
DEALLOCATE PREPARE stmt
Need to be executed on the server who have the both database.
STEAM_0 >> STEAM_1 for CS:GO
__________________
retired
shavit is offline
MrPriime
Junior Member
Join Date: Oct 2015
Old 12-30-2015 , 17:30   Re: [ANY] Store by Zephyrus
Reply With Quote #116

I can't install it :C
__________________
MrPriime is offline
Send a message via Skype™ to MrPriime
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 12-30-2015 , 18:38   Re: [ANY] Store by Zephyrus
Reply With Quote #117

Quote:
Originally Posted by shavit View Post
STEAM_0 >> STEAM_1 for CS:GO
Yeah nope. It works.
__________________
Want to check my plugins ?
Arkarr is offline
kiko.
AlliedModders Donor
Join Date: Dec 2015
Old 12-30-2015 , 19:10   Re: [ANY] Store by Zephyrus
Reply With Quote #118

I tested the Module with the custom knifes.
The Models are invisible.
The Models are in my models/materials folders.

No Errorlogs.

Thanks

Last edited by kiko.; 12-30-2015 at 19:10.
kiko. is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-30-2015 , 19:28   Re: [ANY] Store by Zephyrus
Reply With Quote #119

People saying my name incorrectly in all these posts should be a good enough reason for me to change it. lol
Drixevel is offline
MrPriime
Junior Member
Join Date: Oct 2015
Old 12-30-2015 , 20:00   Re: [ANY] Store by Zephyrus
Reply With Quote #120

The store isn't working for me. I load the plugins and it only shows the store-trade.smx. I also get the error on !admins

I use linux Sourcemod and Metamod, plz help me bbe

__________________

Last edited by MrPriime; 12-30-2015 at 23:19.
MrPriime is offline
Send a message via Skype™ to MrPriime
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 11:11.


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