/hire, when someone is near to you
#5

Hmm, watch your code carefully:
pawn Код:
public OnPlayerText(playerid, text[])
{
    new message[128], targetid; // You didn't define "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;
}
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)