SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Maps

Reply
 
Thread Tools Display Modes
Old 21/09/2008, 08:28 AM   #21
Reamis
Big Clucker
 
Join Date: Oct 2007
Posts: 131
Reputation: 5
Default Re: [PHP+DJSON] DMap 0.2 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based)

it's not good working.
then server has ~10 players, it's good.
then ~30 it's not working.


http://gta-mp.xz.lt/fr_map.php -Map
http://gta-mp.xz.lt/fr_on.php -Players
Reamis is offline   Reply With Quote
Old 21/09/2008, 08:57 AM   #22
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 680
Reputation: 74
Default Re: [PHP+DJSON] DMap 0.2 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based)

Quote:
Originally Posted by Reamis
it's not good working.
then server has ~10 players, it's good.
then ~30 it's not working.


http://gta-mp.xz.lt/fr_map.php -Map
http://gta-mp.xz.lt/fr_on.php -Players
Hello Reamis,

thanks for this report. Your dmap_feed.json looks like only the first player is added+updated.

I am currently doing a rework for some general handling of dmap, I'll message you as soon as dmap 0.3 is ready.

- Draco
__________________

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer]

DracoBlue is offline   Reply With Quote
Old 21/09/2008, 12:00 PM   #23
Reamis
Big Clucker
 
Join Date: Oct 2007
Posts: 131
Reputation: 5
Default Re: [PHP+DJSON] DMap 0.2 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based)

ok, i will wait for it.
Reamis is offline   Reply With Quote
Old 21/09/2008, 04:08 PM   #24
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 680
Reputation: 74
Default Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based)

Dmap 0.3 release

Changes:
- less cpu usage -> faster
- now pretty reliable, even with more players online

Important: Use the new djson 1.5.1, to have full speed features of dmap!

- Draco
__________________

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer]

DracoBlue is offline   Reply With Quote
Old 21/09/2008, 04:30 PM   #25
Reamis
Big Clucker
 
Join Date: Oct 2007
Posts: 131
Reputation: 5
Default Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based)

Quote:
Originally Posted by DracoBlue
Dmap 0.3 release

Changes:
- less cpu usage -> faster
- now pretty reliable, even with more players online

Important: Use the new djson 1.5.1, to have full speed features of dmap!

- Draco
gonna update this night.
thank you.
Reamis is offline   Reply With Quote
Old 21/09/2008, 06:01 PM   #26
Reamis
Big Clucker
 
Join Date: Oct 2007
Posts: 131
Reputation: 5
Default Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based)

ok,
it's working now with +30 players.

but how to show in map 'map icons'?
Reamis is offline   Reply With Quote
Old 21/09/2008, 06:06 PM   #27
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 680
Reputation: 74
Default Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based)

Quote:
Originally Posted by Reamis
ok,
it's working now with +30 players.

but how to show in map 'map icons'?
Hm? What do you mean by map icons?

- Draco

PS: Can I add your site as demo page, too?
__________________

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer]

DracoBlue is offline   Reply With Quote
Old 21/09/2008, 06:14 PM   #28
Reamis
Big Clucker
 
Join Date: Oct 2007
Posts: 131
Reputation: 5
Default Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based)

Quote:
Originally Posted by DracoBlue
Quote:
Originally Posted by Reamis
ok,
it's working now with +30 players.

but how to show in map 'map icons'?
Hm? What do you mean by map icons?

- Draco

PS: Can I add your site as demo page, too?
this :
possible to show in web map?


and about demo, yes
Reamis is offline   Reply With Quote
Old 21/09/2008, 06:32 PM   #29
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 680
Reputation: 74
Default Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based)

Quote:
Originally Posted by Reamis
ok,
it's working now with +30 players.

but how to show in map 'map icons'?
..

this :
possible to show in web map?
Of course!

Add this to your gamemode:
pawn Code:
new DMAP_last_icon = 0;
stock addDmapIcon(Float:x,Float:y,icon_id,name[],text[]) {
        new tmp[DJSON_MAX_STRING];
        DMAP_last_icon++;

        format(tmp,DJSON_MAX_STRING,"items/i%d/id",DMAP_last_icon);
        djSetInt("dmap_feed.json",tmp,DMAP_last_icon);
        format(tmp,DJSON_MAX_STRING,"items/i%d/name",DMAP_last_icon);
        djSet("dmap_feed.json",tmp,name);
        format(tmp,DJSON_MAX_STRING,"items/i%d/icon",DMAP_last_icon);
        djSetFloat("dmap_feed.json",tmp,icon_id);
        format(tmp,DJSON_MAX_STRING,"items/i%d/pos/x",DMAP_last_icon);
        djSetInt("dmap_feed.json",tmp,floatround(x));
        format(tmp,DJSON_MAX_STRING,"items/i%d/pos/y",DMAP_last_icon);
        djSetInt("dmap_feed.json",tmp,floatround(y));
}

Now add icons easily (after dmap_GameModeInit()):
pawn Code:
addDmapIcon(1200,-500,10,"Burger Shop","Description text for the icon (what comes when you click it)");

- Draco

[edit] Updated the code .. should be working now :)
__________________

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer]

DracoBlue is offline   Reply With Quote
Old 17/01/2009, 01:49 AM   #30
ICECOLDKILLAK8
High-roller
 
Join Date: Aug 2008
Posts: 1,154
Reputation: 5
Default Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based)

Can you help me with 2 things please

1. The file is fine and i can oad it from the internet but when i try to access it on my map it shows up as blank.

2. Is there any way to make it so u cant keep scrolling left or right and the map just keeps repeating and repeating?
__________________
IVMP
ICECOLDKILLAK8 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] nCars (DYNAMIC VEHICLES - DJSON VERSION) Norn Filterscripts 22 20/04/2012 10:44 PM
[FilterScript] [FS] ShopSystem - Fully menu-based Vehicle and Ammunation-style Weapons Shop Darkimmortal Filterscripts 56 30/12/2010 11:25 PM
Player Statistics on Website Headshot1108 Help Archive 10 22/05/2010 05:52 PM
Player Statistic on the website CashisSimko Help Archive 0 28/12/2009 10:20 PM


All times are GMT. The time now is 04:00 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.