SA-MP Forums Archive
[Include] SendErrorMessage(playerid, error) - SendErrorMessage! - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [Include] SendErrorMessage(playerid, error) - SendErrorMessage! (/showthread.php?tid=524170)



SendErrorMessage(playerid, error) - SendErrorMessage! - DamonD - 05.07.2014

This is a simple error message system to help organize your error message sending! It's really customizable, and is a very small script.

Basically it has up to 5 slots right now for error messages,

Which can be easily changed to fit your needs.

An example,

This will be the message defined for the first slot(error0). Say I want to send a you're not authorized message... I would then define error0 like so,

NOTE: Make sure you don't forget the "".

Click here to download via pastebin.


Re: SendErrorMessage(playerid, error) - SendErrorMessage! - Inn0cent - 05.07.2014

Hmm, Post this in Includes section.


Re: SendErrorMessage(playerid, error) - SendErrorMessage! - Abagail - 05.07.2014

Would be better as a tutorial to be honest. Its just a few lines of code, nothing more. Could re-create this within a minute, releases should take at-least 5 minutes...


Re: SendErrorMessage(playerid, error) - SendErrorMessage! - Team_PRO - 06.07.2014

Post it as tutorials.


Re: SendErrorMessage(playerid, error) - SendErrorMessage! - Parallex - 06.07.2014

Either post it in the Includes Section or Either at the Tutorial section.
Well, if you're posting it as an Include, this is really easy to script.


Re: SendErrorMessage(playerid, error) - SendErrorMessage! - Raefal - 06.07.2014

Not bad


Re: SendErrorMessage(playerid, error) - SendErrorMessage! - Matz - 06.07.2014

Well I wouldn't prefer that one. Instead:

Код:
stock SendError(playerid, text[])
{
	new str[128];
	format(str,sizeof(str),"{FF0000}%s",text);
    SendClientMessage(playerid,-1,str);
	return 1;
}



Re: SendErrorMessage(playerid, error) - SendErrorMessage! - AfikAtashga - 06.07.2014

Код:
SendClientMessage(playerid, -1, error0);
More easy..