/hire, when someone is near to you
#10

Quote:
Originally Posted by cecko1235
Посмотреть сообщение
Hm, new problem.

Код:
public OnPlayerText(playerid, text[])
{
    new message[128], targetid;
    format(message, sizeof(message), "%s Says: %s", GetName(playerid), text);
    if(ProxDetectorS(30.0, playerid, targetid))
    {
    ProxDetector(30.0, playerid, message, COLOR_WHITE);
    }
    if(ProxDetectorS(60.0, playerid, targetid))
    {
    ProxDetector(60.0, playerid, message, COLOR_GREY);
    }

    return 0;
}
When I type something in the chat, it appears two times. ex:

Danny taylon says: test ( in white ) and then
Danny Taylon says: test (in grey) xD
Remove ProxDetectorS:
pawn Код:
public OnPlayerText(playerid, text[])
{
    new message[128], targetid;
    format(message, sizeof(message), "%s Says: %s", GetName(playerid), text);
    if(ProxDetectorS(30.0, playerid, targetid))
    {
    ProxDetector(30.0, playerid, message, COLOR_WHITE);
    }

    return 0;
}
Reply


Messages In This Thread
/hire, when someone is near to you - by cecko1235 - 05.07.2013, 16:23
Re: /hire, when someone is near to you - by Necip - 05.07.2013, 16:25
Re: /hire, when someone is near to you - by cecko1235 - 05.07.2013, 16:33
Re: /hire, when someone is near to you - by ToiletDuck - 05.07.2013, 16:36
Re: /hire, when someone is near to you - by Necip - 05.07.2013, 16:37
Re: /hire, when someone is near to you - by cecko1235 - 05.07.2013, 16:38
Re: /hire, when someone is near to you - by ToiletDuck - 05.07.2013, 16:41
Re: /hire, when someone is near to you - by Necip - 05.07.2013, 16:41
Re: /hire, when someone is near to you - by cecko1235 - 05.07.2013, 17:20
Re: /hire, when someone is near to you - by Necip - 05.07.2013, 17:22

Forum Jump:


Users browsing this thread: 1 Guest(s)