Maps = {
["map1"] =
{
Guild1Pos = {x=238, y=442, z=12},
Guild2Pos = {x=244, y=442, z=12}
},
["map2"] =
{
Guild1Pos = {x=994, y=1004, z=6},
Guild2Pos = {x=1000, y=1003, z=6}
}
}
Thanks xdd.Xampy you are the best!
The reason why you get this error is because you deleted some player via phpmyadmin.Xampy, keep having this error:
Fatal error: Uncaught exception 'E_OTS_NotLoaded' in C:\mtibia\xampp\htdocs\pot\OTS_Player.php:265 Stack trace: #0 C:\mtibia\xampp\htdocs\wars.php(556): OTS_Player->getName() #1 C:\mtibia\xampp\htdocs\index.php(95): include('C:\mtibia\xampp...') #2 {main} thrown in C:\mtibia\xampp\htdocs\pot\OTS_Player.php on line 265
I don't know what do you mean.where is this sql query??
It works fine, but it has some bugs.@renancs look at first post
@Xampy
is that challenge to map fixed?
Lua:Maps = { ["map1"] = { Guild1Pos = {x=238, y=442, z=12}, Guild2Pos = {x=244, y=442, z=12} }, ["map2"] = { Guild1Pos = {x=994, y=1004, z=6}, Guild2Pos = {x=1000, y=1003, z=6} } }
4) Go to guilds.php [it's inside htdocs folder (xampp)] and AFTER (line 1740~) after thissssss V (read down):
paste this:PHP:if($guild_leader) { if($_POST['todo'] == 'save') { delete_guild($guild->getId()); $saved = TRUE; }
and BEFORE (line 1760~) before thissssss V (read down):PHP:$war = $guild->getCustomField("in_war_with"); if($war == 0) {
paste this:PHP:else { $guild_errors[] = 'You are not a leader of guild!'; } }
PHP:else { $guild_errors[] = 'You are in war with with some other guild!'; } }