SA-MP Forums Archive
HELP ME - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP ME (/showthread.php?tid=648481)



HELP ME - kadirbnm - 22.01.2018

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.


Re: HELP ME - kadirbnm - 22.01.2018

Please help me, otherwise I will eat my head


Re: HELP ME - Jokers98s - 22.01.2018

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);"


Re: HELP ME - kadirbnm - 22.01.2018

that query succeeded.


Re: HELP ME - Jokers98s - 22.01.2018

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


Re: HELP ME - kadirbnm - 22.01.2018

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


Re: HELP ME - Jokers98s - 23.01.2018

wats this didn't get it "ObjeleriYukle"


Re: HELP ME - Sew_Sumi - 23.01.2018

This is how NOT to check for keys...

Please review OnPlayerKeyStateChange on the wiki.

https://sampwiki.blast.hk/wiki/OnPlayerK...heck_for_a_key


Re: HELP ME - Sew_Sumi - 23.01.2018

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


Re: HELP ME - kadirbnm - 23.01.2018

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