![]() |
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> |
Can you share full files?.. I need to try that.
|
| All times are GMT. The time now is 15:40. |