HELP ME
#1

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 02.00, 1555.5016, -1675.5977, 16.1953))
        {
            if(newkeys == KEY_YES)
            {
                SetPlayerPos(playerid, 246.783996,63.900199,1003.640625);
                SetPlayerInterior(playerid, 6);
                SetCameraBehindPlayer(playerid);
                ObjeleriYukle(playerid);
                new query[128];
                new Float:x,Float:y,Float:z, pname[MAX_PLAYER_NAME];
                GetPlayerPos(playerid,x,y,z);
                GetPlayerName(playerid,pname,sizeof(pname));
                format(query, sizeof(query),"UPDATE `Kullanicilar` SET Pos_x='%f', Pos_y='%f', Pos_z='%f' WHERE Isim='%s'", x, y, z, pname);
                mysql_query(mysqlC, query);
                SetPlayerVirtualWorld(playerid,random(100000));
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 02.00, 246.783996,63.900199,1003.640625))
        {
            if(newkeys == KEY_YES)
            {
                SetPlayerPos(playerid, 1555.5016, -1675.5977, 16.1953);
                SetPlayerInterior(playerid, 0);
                SetPlayerVirtualWorld(playerid, 0);
                SetCameraBehindPlayer(playerid);
                ObjeleriYukle(playerid);
            }
        }
I go out after I get in but objects and players do not appear.
Reply
#2

Please help me, otherwise I will eat my head
Reply
#3

Did you look the sql plugin log to make sure that the query is executing ?
"format(query, sizeof(query),"UPDATE `Kullanicilar` SET Pos_x='%f', Pos_y='%f', Pos_z='%f' WHERE Isim='%s'", x, y, z, pname);"
Reply
#4

that query succeeded.
Reply
#5

Be sure that its sames and in db... the calling positions.... becos by mistakes it make change i had the same problem like query executing perfect but the values are of different
Reply
#6

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 02.00, 1555.5016, -1675.5977, 16.1953))
        {
            if(newkeys == KEY_YES)
            {
                SetPlayerPos(playerid, 246.783996,63.900199,1003.640625);
                SetPlayerInterior(playerid, 6);
                SetCameraBehindPlayer(playerid);
                ObjeleriYukle(playerid);
                SetPlayerVirtualWorld(playerid,random(255));
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 02.00, 246.783996,63.900199,1003.640625))
        {
            if(newkeys == KEY_YES)
            {
                SetPlayerPos(playerid, 1555.5016, -1675.5977, 16.1953);
                SetPlayerInterior(playerid, 0);
                SetPlayerVirtualWorld(playerid, 0);
                SetCameraBehindPlayer(playerid);
                ObjeleriYukle(playerid);
            }
        }
new code, This is not working
Reply
#7

wats this didn't get it "ObjeleriYukle"
Reply
#8

This is how NOT to check for keys...

Please review OnPlayerKeyStateChange on the wiki.

https://sampwiki.blast.hk/wiki/OnPlayerK...heck_for_a_key
Reply
#9

Quote:
Originally Posted by Jokers98s
Посмотреть сообщение
wats this didn't get it "ObjeleriYukle"
Answer this OP... Pay attention to what people are saying.
Reply
#10

Quote:
Originally Posted by Jokers98s
Посмотреть сообщение
wats this didn't get it "ObjeleriYukle"
I'm sorry. This is simple standby time
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)