[Help] ProxDetectorS - Easy
#1

My question is, how do I call a "callback" and use the "ProxDetectorS" to send a message to the closest player?

Example:

Код:
CALLBACK: test1(playerid)
{
	new jName = INVALID_PLAYER_ID;
        if(ProxDetectorS(3,playerid,jName))
		{
                     Mensaje(jNombre,-1,"closest player message.");
		}
       Mensaje(playerid, -1, "i use the callback");
	return 1;
}
With this code I get the message "i use the callback" but not send the message to the nearest player "closest player message."

What i doing wrong?
Reply


Messages In This Thread
[Help] ProxDetectorS - Easy - by Doniczzz - 24.11.2016, 18:21
Re: [Help] ProxDetectorS - Easy - by Abagail - 24.11.2016, 18:26
Respuesta: [Help] ProxDetectorS - Easy - by Doniczzz - 24.11.2016, 18:36
Re: Respuesta: [Help] ProxDetectorS - Easy - by Abagail - 24.11.2016, 18:43
Respuesta: [Help] ProxDetectorS - Easy - by Doniczzz - 24.11.2016, 18:53

Forum Jump:


Users browsing this thread: 1 Guest(s)