This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include'./mysql_config.php'; | |
$check_position=mysqli_query($con, "SELECT `position` FROM `playerdata` WHERE ID = '".$unique_id."'"); | |
$fetch_position=mysqli_fetch_assoc($check_position); | |
The value of position in the playerdata table is: 1|2|3 | |
I want that the result is: | |
$x=1; | |
&y=2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @include http://nl*.tribalwars.nl/game.php* | |
// @include http://nl*.tribalwars.nl/public_report/* | |
// @include http://zz*.tribalwars.net/game.php* | |
// @include http://zz*.tribalwars.net/public_report/* | |
// @name TBR Map | |
// @version 3.2.28 | |
// @namespace http://tbrmap.twscripters.wyk.nl/ | |
// @description TBR Map v3.2.26 voor Tribalwars.nl / beta.tribalwars.net | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def do_i_win my_choice, your_choice | |
if my_choice == 'rock' and your_choice == 'scissors' | |
return true | |
elsif my_choice == 'paper' and your_choice == 'rock' | |
return true | |
elsif my_choice == 'scissors' and your_choice == 'paper' | |
return true | |
end | |
return false | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SeoMeta | |
module ExtraInstanceMethods | |
def attributes | |
seo_meta_attributes.merge(super) | |
end | |
def attributes_equals(attributes, *args) | |
seo_meta_attributes.merge(attributes) | |
super | |
end |