Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 10.02.2007, 15:19   #1
pepito
Архивный участник
 
Join Date: Feb 2007
Posts: 1
Default Please help me, to ASP map

This script is funtion in sql 2000, and win xp, but i change platform to 64 bit. Winxp x64 and sql 2005.
For work retail version.

The script dont correct funtion, in sql 2005. He connect to DB, and player online is correct. But player in map, is bad funtion.

If example he said 80 player online, but mark only one point in the map. I see, and repeat all player in one point, in the map.

Is posible that sql 2005, change any command funtion, and dont work correct.

Please help me for repair script.

Thank.

P.S. My Web Page only work in ASP.

*****************************************

<html><head><title>Jugadores en Linea</title></head><body>
<%
Dim MyConn, MyRS, SQLstr

'Your MSSQL Server Username
ms_sql_server_host_addr = "localhost"
sql_server_username = "sa"
sql_server_password = "xxxx"
lin2world = "lin2world"

set MyConn = CreateObject("ADODB.Connection")
myconn.open "provider=SQLNCLI;server="&ms_sql_server_host_addr &"; uid="&sql_server_username&";pwd="&sql_server_passw ord&";database="&lin2world

set MyRS = CreateObject("ADODB.Recordset")
SQLstr = "SELECT char_name,xloc,yloc,race,zloc FROM user_data WHERE login > logout"
MyRS.open SQLstr, MyConn, 3, 3

UsersOnline = MyRS.RecordCount
response.write "<div style=position:absolute;top:0px;left:0px><img src=Aden-C4-full.jpg>"

CRec = 0
if UsersOnline > 0 then
do while not CRec = UsersOnline
XLoc = MyRS.Fields("xloc")
YLoc = MyRS.Fields("yloc")
ZLoc = MyRS.Fields("zloc")
Race = MyRS.Fields("race")
Name = MyRS.Fields("char_name")
xpix=(xloc + 132000)/410-4
ypix=(yloc + 264000)/410-8
CRec =(CRec + 1)
response.write "<div style=\position:absolute;top:" & ypix & "px;left:" & xpix & "px><a href='#'><img src=" & race & ".jpg width='5' height='5' border='1' title=" & name & ", x: " & xloc & " y: " & yloc & " z: " & zloc & "></a></div>"
loop
end if
response.write "<div style=position:absolute;top:5px;left:5px><b><font color='white' face='Verdana'>" & UsersOnline & " Jugadores Online.</div></div>"
MyRS.Close
MyConn.Close
%>
</body></html>
pepito is offline  
Old 10.02.2007, 23:43   #2
KOC2000
Архивный участник
 
Join Date: Jun 2006
Posts: 100
Default

Can you share full files?.. I need to try that.
KOC2000 is offline  
 


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

Forum Jump


All times are GMT. The time now is 16:02.