SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 30/06/2016, 12:58 PM   #211
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,208
Reputation: 352
Default Re: Pawn.CMD - the fastest and most functional command processor

I guess it was about
PHP Code:
#define CMD_DEFAULT     (0b10000000000)
#define CMD_TEAM_1      (0b01000000000)
#define CMD_TEAM_2      (0b00100000000)
#define CMD_ADMIN_1     (0b00010000000)
#define CMD_ADMIN_2     (0b00011000000)
#define CMD_ADMIN_3     (0b00011100000)
#define CMD_ADMIN_4     (0b00011110000)
#define CMD_ADMIN_5     (0b00011111000)
#define CMD_VIP_1       (0b00000000100)
#define CMD_VIP_2       (0b00000000110)
#define CMD_VIP_3       (0b00000000111) 
AbyssMorgan is offline   Reply With Quote
Old 30/06/2016, 01:30 PM   #212
vannesenn
Gangsta
 
vannesenn's Avatar
 
Join Date: Feb 2011
Posts: 607
Reputation: 15
Default Re: Pawn.CMD - the fastest and most functional command processor

Quote:
Originally Posted by Konstantinos View Post
Why that insistence of a benchmark? We all know that command processor written in PAWN cannot beat the plugin.
What about Life CMD? MCMD and other processors made as plugin?
vannesenn is offline   Reply With Quote
Old 30/06/2016, 04:05 PM   #213
YourShadow
Big Clucker
 
YourShadow's Avatar
 
Join Date: Apr 2016
Posts: 141
Reputation: 265
Default Re: Pawn.CMD - the fastest and most functional command processor

Quote:
Originally Posted by vannesenn View Post
What about Life CMD? MCMD and other processors made as plugin?
These plugins do not hash commands.
YourShadow is offline   Reply With Quote
Old 30/06/2016, 04:24 PM   #214
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,324
Reputation: 652
Default Re: Pawn.CMD - the fastest and most functional command processor

Quote:
Originally Posted by Spmn View Post
That's not how bitflags work. Some of those numbers aren't even valid 32-bit integers. I guess you wanted to write them in binary form instead of hexadecimal.
Yes obviously... xD

I actually noticed my mistake right after I posted the reply. I just figured you guys weren't dumb enough to think I thought the prefix for a binary integer constant was 'x', so I didn't changed it. Instead I started working on a larger list, that I forgot to post.

pawn Code:
// Everybody
#define CMD_DEFAULT     (0b10000000000000000000000000000000)

// Teams
#define CMD_TEAM_1      (0b01000000000000000000000000000000)
#define CMD_TEAM_2      (0b00100000000000000000000000000000)

// Admins
#define CMD_ADMIN_1     (0b00010000000000000000000000000000)
#define CMD_ADMIN_2     (0b00011000000000000000000000000000)
#define CMD_ADMIN_3     (0b00011100000000000000000000000000)
#define CMD_ADMIN_4     (0b00011110000000000000000000000000)
#define CMD_ADMIN_5     (0b00011111000000000000000000000000)

// VIP
#define CMD_VIP_1       (0b00000000100000000000000000000000)
#define CMD_VIP_2       (0b00000000110000000000000000000000)
#define CMD_VIP_3       (0b00000000111000000000000000000000)

// Jobs
#define CMD_MINERS      (0b00000000000100000000000000000000)
#define CMD_CASHIER     (0b00000000000010000000000000000000)
#define CMD_FISHER      (0b00000000000001000000000000000000)
#define CMD_COP_1       (0b00000000000000100000000000000000)
#define CMD_COP_2       (0b00000000000000110000000000000000)
#define CMD_COP_3       (0b00000000000000111000000000000000)

// Classes
#define CMD_ARMY         (0b0000000000000000110000000000000000)
#define CMD_MARINE       (0b0000000000000000100000000000000000)
#define CMD_NAVY         (0b0000000000000000010000000000000000)
#define CMD_GENERAL      (0b0000000000000000111000000000000000)

// Almighty
#define CMD_OWNER        (0b1111111111111111111111111111111111)
Better?
Crayder is offline   Reply With Quote
Old 01/07/2016, 06:25 PM   #215
YourShadow
Big Clucker
 
YourShadow's Avatar
 
Join Date: Apr 2016
Posts: 141
Reputation: 265
Default Re: Pawn.CMD - the fastest and most functional command processor

I will update the graph tomorrow.
YourShadow is offline   Reply With Quote
Old 02/07/2016, 07:12 AM   #216
YourShadow
Big Clucker
 
YourShadow's Avatar
 
Join Date: Apr 2016
Posts: 141
Reputation: 265
Default Re: Pawn.CMD - the fastest and most functional command processor

The graph was updated.
YourShadow is offline   Reply With Quote
Old 02/07/2016, 12:36 PM   #217
vannesenn
Gangsta
 
vannesenn's Avatar
 
Join Date: Feb 2011
Posts: 607
Reputation: 15
Default Re: Pawn.CMD - the fastest and most functional command processor

I don't understand what I can to do with flags?
vannesenn is offline   Reply With Quote
Old 02/07/2016, 12:38 PM   #218
SecretBoss
Gangsta
 
SecretBoss's Avatar
 
Join Date: Dec 2014
Location: Greece
Posts: 807
Reputation: 106
Default Re: Pawn.CMD - the fastest and most functional command processor

Quote:
Originally Posted by vannesenn View Post
I don't understand what I can to do with flags?
You can use them to make helper/admin/rank commands faster and easier see the example in main post
__________________
SecretBoss is offline   Reply With Quote
Old 02/07/2016, 03:18 PM   #219
Luicy.
Banned
 
Join Date: Dec 2014
Location: Sweden, Skövde
Posts: 775
Reputation: 79
Default Re: Pawn.CMD - the fastest and most functional command processor

This is still not working with YSI y_hooks. Please fix.
Luicy. is offline   Reply With Quote
Old 02/07/2016, 03:21 PM   #220
YourShadow
Big Clucker
 
YourShadow's Avatar
 
Join Date: Apr 2016
Posts: 141
Reputation: 265
Default Re: Pawn.CMD - the fastest and most functional command processor

Quote:
Originally Posted by Meller View Post
This is still not working with YSI y_hooks. Please fix.
I did check, the plugin worked... How do you use y_hooks?
YourShadow is offline   Reply With Quote
Reply

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
[Plugin] Vectoral Pawn - STL Data containers for pawn Rancho Plugin Development 69 25/03/2019 11:50 PM
Forum bug with [pawn][/pawn] BBCODE Yuripe Everything and Nothing 4 06/10/2012 12:58 PM
[Tool/Web/Other] PAWN Scanner - Scan PAWN files for information. Slice Tools and Files 10 15/07/2012 07:09 PM
[Help With Pawn] Pawn and compiler is not working..... D_Less Client Support 3 09/03/2012 04:49 AM


All times are GMT. The time now is 08:44 AM.


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