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, 09:42 PM   #11
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Location: France
Posts: 1,563
Reputation: 160
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))
{
    return 
1;

__________________
« Sometimes you might be lucky enough to bump into the one person
you wanna spend the rest of your life with, and that is love. »
Oscar
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 08:05 PM
Mutliple Strings in Commands aintaro Scripting Help 2 17/08/2012 10:19 PM
Help Macros TheArcher Help Archive 5 24/07/2011 12:25 PM
Variables accessible in mutliple scripts littlegrimlin1 Help Archive 6 28/02/2010 04:57 AM


All times are GMT. The time now is 12:15 PM.


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