SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 22/01/2010, 07:14 PM   #1
SlashPT
High-roller
 
SlashPT's Avatar
 
Join Date: Sep 2009
Location: Hell
Posts: 2,071
Reputation: 107
Default Prox Detector

hey all im doing one function to use Prox Detector easyer i copyed the same thing but for sendclientmessage

pawn Code:
#define SendFormattedMessage(%0,%1,%2) do{new _str[128]; format(_str,128,%2); SendClientMessage(%0,%1,_str);}while(FALSE)

im trying to do it but for Prox Detector i used

pawn Code:
#define SendFormattedProx(%6,%7,%8,%1,%2,%3,%4,%5) do{new _str[128];format(%6,%7,128,%1,%2,%3,%4,%5);ProxDetector(%6,%7,_str,%1,%2,%3,%4,%5);}while(FALSE)

but it gives me error (i know its wrongly did) can any guy help me??

in advance thanks

DarK TeaM PT
__________________

Zh3r0Jansish
SlashPT is offline  
Old 22/01/2010, 07:22 PM   #2
SlashPT
High-roller
 
SlashPT's Avatar
 
Join Date: Sep 2009
Location: Hell
Posts: 2,071
Reputation: 107
Default Re: Prox Detector

idk i just tried it by myself but its all wrong lol
__________________

Zh3r0Jansish
SlashPT is offline  
Old 22/01/2010, 08:02 PM   #3
Nero_3D
High-roller
 
Nero_3D's Avatar
 
Join Date: Jun 2007
Location: Germany
Posts: 3,352
Reputation: 354
Default Re: Prox Detector

its not important which number comes when but its limited to 10

pawn Code:
//SendFormattedProx(playerid, Float:radius, stringsize, c1, c2, c3, c4, c5, text[], {Float,_}:...)
#define SendFormattedProx(%6,%7,%8,%1,%2,%3,%4,%5,%9) do{new _str[%8];format(_str,%8,%9);ProxDetector(%7,%6,_str,%1,%2,%3,%4,%5);}while(FALSE)
__________________


Nero_3D is offline  
Old 22/01/2010, 08:12 PM   #4
[LDT]LuxurY
Gangsta
 
[LDT]LuxurY's Avatar
 
Join Date: Feb 2007
Location: Russian Federation, Orekhovo-Zyevo
Posts: 588
Reputation: 1
Default Re: Prox Detector

try this:

pawn Code:
native SendFormattedMessage ( playerid , color , const format[] , {Float,_}:... );
#define SendFormattedMessage(%1,%2,%3,%4); \
{\
    new xstr[128];\
    format(xstr,128,%3,%4);\
    SendClientMessage(%1,%2,xstr);\
}
[LDT]LuxurY is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS]Language detector jonrb Filterscripts 26 26/12/2012 12:38 AM
Does this work same as prox detector? Torran Help Archive 3 25/02/2010 02:36 PM
[FilterScript] [FS] AFK Detector by Peppe Peppe95 Filterscripts 3 30/10/2009 05:45 PM
Bug detector lithuania154 Client Support 2 15/07/2009 08:00 PM
[FilterScript] [FS] Windows or Linux detector Vetle Filterscripts 25 06/06/2009 06:07 PM


All times are GMT. The time now is 08:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.