SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 05/06/2011, 05:01 AM   #41
1337connor
Huge Clucker
 
Join Date: Nov 2008
Posts: 228
Reputation: 14
Default Re: "ALERT"

Quote:
Originally Posted by Calg00ne View Post
Code:
static cell AMX_NATIVE_CALL alert(AMX *amx, cell *params)
{  
		char* buffer;
		amx_StrParam(amx,params[1],buffer);
		std::cout << red << "[ALERT] " << buffer << white << std::endl;
        return 1; // Change the return value if need
}
Important code is important. Out of interest, do you even know what "buffer" means?
Yes..
The definition of buffer is as read
Code:
A temporary memory area or queue used when transferring data between devices or programs operating at different speeds
1337connor is offline   Reply With Quote
Old 05/06/2011, 05:19 AM   #42
MrDeath537
High-roller
 
Join Date: Nov 2009
Location: Argentina
Posts: 1,959
Reputation: 29
Default Re: "ALERT"

Quote:
Originally Posted by Hiddos View Post
There is.
I was talking about Garfield's post, he posted this:

pawn Code:
#define Alert(%0) ((printf(%0)))
__________________
Sometimes I return.
MrDeath537 is offline   Reply With Quote
Old 05/06/2011, 12:16 PM   #43
ev0lution
Gangsta
 
ev0lution's Avatar
 
Join Date: Jul 2009
Posts: 681
Reputation: 380
Default Re: "ALERT"

Quote:
Originally Posted by 1337connor View Post
Yes..
The definition of buffer is as read
Code:
A temporary memory area or queue used when transferring data between devices or programs operating at different speeds
Your usage of a buffer barely fits that description, and I think a personal definition rather than a generic copied one would've been preferred.

Despite your past, present and probable future failures, well, I admire your persistence.
__________________
ev0lution is offline   Reply With Quote
Old 05/06/2011, 04:40 PM   #44
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: "ALERT"

Nice to see people making use of my tutorial to create plugins. Good job for your first plugin!
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 05/06/2011, 06:30 PM   #45
1337connor
Huge Clucker
 
Join Date: Nov 2008
Posts: 228
Reputation: 14
Default Re: "ALERT"

UPDATE:
Added TTS functionality.. what is printed, will now be echo'd in a voice.
1337connor is offline   Reply With Quote
Old 12/06/2011, 08:48 AM   #46
PacoBeanZ
Little Clucker
 
PacoBeanZ's Avatar
 
Join Date: Dec 2010
Posts: 39
Reputation: 0
Default Re: "ALERT"

TTS function aLsoż? Zomg I'm going to have a little bit of fun with this plugin =P| Nice job! Hope there is going to be a range of colors in the next update, I just don't see myself using red for every alert though :P.
PacoBeanZ is offline   Reply With Quote
Old 14/06/2011, 01:54 AM   #47
1337connor
Huge Clucker
 
Join Date: Nov 2008
Posts: 228
Reputation: 14
Default Re: "ALERT"

Quote:
Originally Posted by PacoBeanZ View Post
TTS function aLsoż? Zomg I'm going to have a little bit of fun with this plugin =P| Nice job! Hope there is going to be a range of colors in the next update, I just don't see myself using red for every alert though :P.
Still trying to figure that out
1337connor is offline   Reply With Quote
Old 14/06/2011, 07:35 AM   #48
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,088
Reputation: 188
Default Re: "ALERT"

Simple but nice one!
__________________
Looking for someone to start drifting server, drop me a pm if you are interested.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER is offline   Reply With Quote
Old 18/06/2011, 09:47 PM   #49
1337connor
Huge Clucker
 
Join Date: Nov 2008
Posts: 228
Reputation: 14
Default Re: "ALERT"

Quote:
Originally Posted by DRIFT_HUNTER View Post
Simple but nice one!
Thanks, Drift Hunter! I'll be adding more things soon!
1337connor is offline   Reply With Quote
Reply

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
D:\Mis documentos\Server\gamemodes\lscnr.pwn(30602) : error 001: expected token: ",", but found ";" [M]xFire Help Archive 3 27/08/2010 07:11 PM
[SOLVED]warning 224: indeterminate array size in "sizeof" expression (symbol "") LarzI Help Archive 2 22/12/2009 04:32 AM
Admin script requires "ReturnUser", "strtok" and "IsNumeric" Rubennnnn Help Archive 1 02/12/2009 06:08 PM
"Bots", "AI", "NPCs"... Computer-controlled pedestrians and traffic! ssflsnoob General 2 23/11/2008 06:06 PM


All times are GMT. The time now is 07:19 AM.


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