de afgelopen dagen een concatenative programming language interpreter gemaakt in C
https://github.com/raoulvdberge/stak
is interessant maar vooral leerzaam
https://github.com/raoulvdberge/stak
is interessant maar vooral leerzaam
.Alemaalte schreef:Als ik op de "Join Game" button klik gebeurd er niets.Ik heb minions gemaakt voor mijn game http://castlewar.net/
Ze zijn wel veel te cpu intensief op de server en na een tijd laggt het een beetje.
Kitnkiller schreef:Das vreemd. Welke broweser?Ze zijn wel veel te cpu intensief op de server en na een tijd laggt het een beetje.Eerdere citaten tonen
Alemaalte schreef:Ik heb minions gemaakt voor mijn game http://castlewar.net/
Als ik op de "Join Game" button klik gebeurd er niets.
Alemaalte schreef:ChromeDas vreemd. Welke broweser?Eerdere citaten tonen
Kitnkiller schreef:Ze zijn wel veel te cpu intensief op de server en na een tijd laggt het een beetje.Eerdere citaten tonen
Alemaalte schreef:Ik heb minions gemaakt voor mijn game http://castlewar.net/
Als ik op de "Join Game" button klik gebeurd er niets.
Kitnkiller schreef:Kan je even in de console (f12 of ctrl-shift-i) of er een error is?ChromeEerdere citaten tonen
Alemaalte schreef:Das vreemd. Welke broweser?Eerdere citaten tonen
Kitnkiller schreef:Ze zijn wel veel te cpu intensief op de server en na een tijd laggt het een beetje.Eerdere citaten tonen
Alemaalte schreef:Ik heb minions gemaakt voor mijn game http://castlewar.net/
Als ik op de "Join Game" button klik gebeurd er niets.
Alemaalte schreef:Had overlaatst nog eens geprobeerd en toen werkte het wel (kon zijn door slechte internetverbinding, was op vakantie).Kan je even in de console (f12 of ctrl-shift-i) of er een error is?Eerdere citaten tonen
Kitnkiller schreef:ChromeEerdere citaten tonen
Alemaalte schreef:Das vreemd. Welke broweser?Eerdere citaten tonen
Kitnkiller schreef:Ze zijn wel veel te cpu intensief op de server en na een tijd laggt het een beetje.Eerdere citaten tonen
Alemaalte schreef:Ik heb minions gemaakt voor mijn game http://castlewar.net/
Als ik op de "Join Game" button klik gebeurd er niets.
Kitnkiller schreef:Je moet het kasteel aan de andere kant kapot maken door er met minions en/of jezelf op te staan.Had overlaatst nog eens geprobeerd en toen werkte het wel (kon zijn door slechte internetverbinding, was op vakantie).Eerdere citaten tonen
Alemaalte schreef:Kan je even in de console (f12 of ctrl-shift-i) of er een error is?Eerdere citaten tonen
Kitnkiller schreef:ChromeEerdere citaten tonen
Alemaalte schreef:Das vreemd. Welke broweser?Eerdere citaten tonen
Kitnkiller schreef:Ze zijn wel veel te cpu intensief op de server en na een tijd laggt het een beetje.Eerdere citaten tonen
Alemaalte schreef:Ik heb minions gemaakt voor mijn game http://castlewar.net/
Als ik op de "Join Game" button klik gebeurd er niets.
Nu werkt die ook gewoon, alleen snap ik niet hoe het werkt. Ik kan pijltjes schieten en rondlopen maar ik zie het doel van het spel niet in.

Jessee schreef:Das waarschijnlijk omdat je door de minions loopt?Ik ga echt op de meest random momenten dood
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/*==========/
One2xs Post API
/==========*/[/COLOR]
namespace One2xs[COLOR= #007700];[/COLOR]
final [URL="http://www.php.net/class"]class[/URL] Post extends Auth [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] __construct[COLOR= #007700]([/COLOR][COLOR= #0000BB]$config[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]()) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/count"]count[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$config[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]0[/COLOR] [COLOR= #007700]|| ![/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$config[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"loginDetails"[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]"username"[/COLOR][COLOR= #007700]])
|| ![/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$config[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"loginDetails"[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]"password"[/COLOR][COLOR= #007700]])
|| ![/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$config[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"postsInfo"[/COLOR][COLOR= #007700]])) {[/COLOR]
throw [COLOR= #007700]new[/COLOR] Exception[COLOR= #007700]([/COLOR][COLOR= #DD0000]"Config not valid"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/return"]return[/URL][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]Auth[COLOR= #007700]::[/COLOR]login[COLOR= #007700]([/COLOR][COLOR= #0000BB]$config[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"loginDetails"[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]"username"[/COLOR][COLOR= #007700]],[/COLOR]
[COLOR= #0000BB]$config[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"loginDetails"[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]"password"[/COLOR][COLOR= #007700]]) ===[/COLOR] false[COLOR= #007700]) {[/COLOR]
throw [COLOR= #007700]new[/COLOR] Exception[COLOR= #007700]([/COLOR][COLOR= #DD0000]"Failed to login"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/return"]return[/URL][COLOR= #007700];
}[/COLOR]
[COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]config [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$config[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] execute[COLOR= #007700]() {[/COLOR]
[COLOR= #FF8000]/*foreach($this->config["postsInfo"] as $post) {
var_dump($post);
}*/[/COLOR]
Request[COLOR= #007700]::[/COLOR]request[COLOR= #007700]([/COLOR][URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
CURLOPT_URL [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]"http://www.one2xs.com/includes/ajaxfuncties.php"[/COLOR][COLOR= #007700],[/COLOR]
CURLOPT_POST [COLOR= #007700]=>[/COLOR] true[COLOR= #007700],[/COLOR]
CURLOPT_POSTFIELDS [COLOR= #007700]=>[/COLOR] http_build_query[COLOR= #007700]([/COLOR][URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
[COLOR= #DD0000]"s"[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]20[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]"t"[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]59021[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]"b"[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]"hoi"[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]"p"[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]109[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]"c"[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]csrfToken[COLOR= #007700],[/COLOR]
[COLOR= #DD0000]"dubbelpost"[/COLOR] [COLOR= #007700]=>[/COLOR] false[COLOR= #007700],[/COLOR]
[COLOR= #DD0000]"ding"[/COLOR] [COLOR= #007700]=>[/COLOR] false
[COLOR= #007700]))
));
}[/COLOR]
[URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] __destruct[COLOR= #007700]() {[/COLOR]
Auth[COLOR= #007700]::[/COLOR]logout[COLOR= #007700]();
}
}[/COLOR] Jessee schreef:nah geheime shizzleIs niet de hele class?