SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 22/11/2017, 08:42 PM   #11
Dayrion's Avatar
Join Date: Jan 2016
Location: France
Posts: 1,924
Reputation: 256
Default Re: [Macro] Mutliple macros in one

The thing I don't understand is that %8$ before each "cmd_".
PHP Code:
#define CMD: __:CMD_1:CMD_2:CMD_3:$

#define CMD_1:CMD_2:CMD_3:%8$%1[%2](%3) %8$cmd_%1(%3) <cmd_state: %2>
#define CMD_2:CMD_3:%8$%1{%2}(%3)         %8$cmd_%1(%3) if (Is%2(playerid))
#define CMD_3:%8$%1(%3)                 %8$cmd_%1(%3) 
I'm wondering how the compiler consider "u@(u[_:%0 u@$" ? as a variable?
PHP Code:
u@(u[_:CMD_10]);cmd_ban(playeridparams[]) if (IsAdmin(playerid))

actor_plus - v5.0.2
« I'm a goner, somebody catch my breath,
I'm a goner, somebody catch my breath »
Dayrion is offline   Reply With Quote

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
[Ajuda] Macros AndrePls Português/Portuguese 11 25/12/2012 07:05 PM
Mutliple Strings in Commands aintaro Scripting Help 2 17/08/2012 09:19 PM
Help Macros TheArcher Help Archive 5 24/07/2011 11:25 AM
Variables accessible in mutliple scripts littlegrimlin1 Help Archive 6 28/02/2010 03:57 AM

All times are GMT. The time now is 07:38 PM.

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