aboutsummaryrefslogtreecommitdiffstats
path: root/inc/messages.inc
blob: c24bd189fad6e52b5c3fc6fdadaca77fb684d91c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

$messages = array(
	"shop_already_built" => "You have already built a shop.",
	"gold_insufficient" => "You don't have enough gold.",
	"shop_missing_item" => "This item does not exist.",
	"guild_not_yet_created" => "You need to create a guild first.",
	"guild_already_built" => "You have aready built a guild.",
	"dungeon_already_available" => "You can already access the dungeon"
);

function sendError($msg) {
	global $messages;
	$text = $messages[$msg];
	echo json_encode(array("error" => $text));
}

?>