Posts: 605
Threads: 83
Joined: Apr 2014
Reputation:
0
I just want to know how to make a include and do includes Help in scripting ? And How to make it For example I wanna make my function in my include That is SendClientMessage I wanna make this SCM in include how do i do it ?
Posts: 605
Threads: 83
Joined: Apr 2014
Reputation:
0
So This will come in my include ? So if I #include <myinclude> Then I can use Function right ?
Posts: 1,578
Threads: 15
Joined: Feb 2013
Reputation:
0
Yes you can rockhopper.
Also, I hooked OnPlayerConnect and sent a message inside of it, just as an example, you can of course remove it.
It was just to show you that it works.
Posts: 605
Threads: 83
Joined: Apr 2014
Reputation:
0
Now YOu think Im making a include Of Short Forms So In my include I will add
#define SCM SendClientMessage
OR
stock SCM(playerid,text)
{
new text[500];
SendClientMessage(playerid,text);
return 1;
}
And I Include My include im my GM And Then I can use SCM right ?
Posts: 983
Threads: 98
Joined: Feb 2012
Reputation:
0
You can do stocks too for example: INCLUDE_NAME_UnderOnGameModeinit();
and add it for example under OnGameModeinit. it will be fine.
and about your SCM question if you did "#include <ur include name>" before defining the SCM thing it will show up errors, but if you added the include after the defintion it might not show errors.
Good luck.