[Help] House loading.
#1

Hi. I use MySQL to load houses (X, Y, Z, owner, price, locked).
I'm using this:
PHP код:
while(mysql_retrieve_row()){
    
Create3DTextLabel(QueryCOLOR_BLUEpos[0], pos[1], pos[2], 10.000);

to create 3D label for every house. How I can create entry with F to every house too? I know that I need to use OnPlayerKeyStateChange but I can't find a solution to make entry with F to every loaded house.
Reply
#2

Anybody?
Reply
#3

Here is basic idea.

pawn Код:
if(newkeys  == KEY_SECONDARY_ATTACK)
    {
        if(IsPlayerInRangeOfPoint(playeid,2,x,y,z))
        {
            //enter him
        }
    }
Reply
#4

Quote:
Originally Posted by Tayab
Посмотреть сообщение
Here is basic idea.

pawn Код:
if(newkeys  == KEY_SECONDARY_ATTACK)
    {
        if(IsPlayerInRangeOfPoint(playeid,2,x,y,z))
        {
            //enter him
        }
    }
I found simple sulution: I made same MySQL query in OnPlayerKeyStateChange public. Can anybody tell me if it will be ok? Won't it lag the server?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)