Possible to define/new a whole bit off code?
#1

As title states its the easiest way to explain it that way.

For example:

Код:
CMD:example(playerid, params[])
{
	SCMExampleAll
	return 1;
}
then SCMExampleAll should do: (like a define or new)

Код:
SendClientMessage(playerid, -1, "Example");
SendClientMessage(playerid, -1, "Example");
SendClientMessage(playerid, -1, "Example");
SendClientMessage(playerid, -1, "Example");
SendClientMessage(playerid, -1, "Example");
SendClientMessage(playerid, -1, "Example");
SendClientMessage(playerid, -1, "Example");
SendClientMessage(playerid, -1, "Example");
(The whole code not just one)

It needs to be allowed to use any kind of character. (examples: = && []())

If its SetIntVar etc, may I get an intruction?

Thank you for you time.
Reply
#2

You want to send to every player? or just the 8 functions in one?

use stock
https://sampwiki.blast.hk/wiki/Stocks
Reply
#3

Just make it a function....

SCMExampleAll()
{


}
Reply
#4

As Pottus said, make it into a function, but I think that making it into a stock would make it cleaner, and faster processed(I'm not sure about this)
Try a stock In my opinion
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)