Live online map!
#1

Hello,
I god a good idea on how to create a online live map with php,mysql,pawno and javascript.
I will create a javascript that will make a map something like:

There i will put the map of Sanandreas
Than with php i will convert the x, y coordinates received from the MySQL database to a more easier to work wit int like 0 or 100 or 99.91 than with javascript i will load these digits and place an icon like:

on the map where the x, y coordinates come together.
with pawno i will put the coordinates in the MySQL database every second
and i will load these in the php side of the script.

BUTT i am stuck i dont now the max x, y coords and the minimum of the x,y coords
so if anyone knows that.. please give them
Reply
#2

min x,y: -3000.0000, -3000.0000
max x,y: 3000.0000, 3000.0000

so at all the size is 6000 x 6000
just with an offset -3000,-3000, so the middle is 0.0,0.0, not 3000.0,3000.0

x******Map=xPlayer+3000;
y******Map=yPlayer+3000;
Reply
#3

It's not new , there is host that provide this idea , online game mod, but it cost money
supporting your work
Reply
#4

if my created script works i will post it on this forum
Reply
#5

i got the php,mysql side running!!! now the javascript :P
Reply
#6

javascript is running! now pawno
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)