SA-MP Forums Archive
[Plugin] "ALERT" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] "ALERT" (/showthread.php?tid=258678)

Pages: 1 2


Re: "ALERT" - Biesmen - 01.06.2011

Quote:
Originally Posted by Calg00ne
View Post
A very useless plugin.
Yes it's useless, but it's still a great plugin if you're bored of reading white letters in your console.


Re: "ALERT" - PCheriyan007 - 01.06.2011

It's very basic however it may appeal to others. Personally I'll use the printc native if I want to do that.


Re: "ALERT" - 1337connor - 01.06.2011

Quote:
Originally Posted by PCheriyan007
View Post
It's very basic however it may appeal to others. Personally I'll use the printc native if I want to do that.
There is no printc.. he was suggesting I make it, which I will try to.


Re: "ALERT" - Kwarde - 01.06.2011

Btw 1337connor, is this the first plugin you ever made?


Re: "ALERT" - Sasino97 - 01.06.2011

Quote:
Originally Posted by 1337connor
View Post
There is no printc.. he was suggesting I make it, which I will try to.
LoL I was thinking about a printc before you posted this


Re: Respuesta: "ALERT" - Phanto90 - 01.06.2011

Quote:
Originally Posted by admantis
View Post
In plugin? why plugin? It's useless and stupid if you can do it in PAWN within 4 lines.

pawn Code:
stock alert(chars[])    // 1
{       // 2
    return SendClientMessageToAll(0xFF0000FF, chars); // 3
} // 4
O yeah, just an epic fail! LoL
Would be nice a plugin that sends coloured message to the console, not only coloured in red LoL


Re: "ALERT" - DaKill - 03.06.2011

This plugin can change console color text.


Re: "ALERT" - Hiddos - 04.06.2011

Quote:
Originally Posted by Schurman
View Post
Do you guys even know how hard it is to make a plugin? Hard.
Who would use this? Obviously, it's funny if you can do things like it but it's more for yourself to learn from: This totally isn't worth publishing AT ALL. If someone would post a filterscript that would make all players have the same skin would you still also be so super-duper positive about it? I doubt so.

I wish Ryder never made this tutorial about plugins -.-


Quote:
Originally Posted by MrDeath537
View Post
Why do you use "printf" if there isn't any support for parameters?
There is.


Re: "ALERT" - 1337connor - 04.06.2011

I guess a purpose of it could be for people who code on their home comptuers, to test their code, and if there is something wrong with it, they can use alert, and easily see it.


Re: "ALERT" - Gamer_Z - 04.06.2011

Yes i think you mean you can make 'error debuggin levels' ex green for tiny mistakes and orange for some warnings and red for errors, obivously you didn't include an changhecolor function so.. print(f) is a better way to debug a script. less mindfucking and installing and intergrating.. I men why the heck would you openup your server config , add the include and plugin etc all this work to just ignore the printf function?

Sorry guy but you need to add some really usefull functions.


Re: "ALERT" - Calgon - 04.06.2011

Код:
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?


Re: "ALERT" - 1337connor - 05.06.2011

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
Код:
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
Код:
A temporary memory area or queue used when transferring data between devices or programs operating at different speeds



Re: "ALERT" - MrDeath537 - 05.06.2011

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)))



Re: "ALERT" - ev0lution - 05.06.2011

Quote:
Originally Posted by 1337connor
Посмотреть сообщение
Yes..
The definition of buffer is as read
Код:
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.


Re: "ALERT" - 1337connor - 18.06.2011

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