24.11.2016, 18:21
My question is, how do I call a "callback" and use the "ProxDetectorS" to send a message to the closest player?
Example:
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?
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; }
What i doing wrong?