SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 03/07/2016, 07:22 PM   #11
Luicy.
Gangsta
 
Luicy.'s Avatar
 
Join Date: Dec 2014
Location: Sweden, Skövde
Posts: 849
Reputation: 79
Default Re: Pawn.Regex - full support of regular expressions

Nice I guess, But what makes this so much better than strfind? All difference I can see are it's cleaner.
__________________
Experienced PAWN Scripter
Luicy. is offline   Reply With Quote
Old 03/07/2016, 08:01 PM   #12
Arturo226
Little Clucker
 
Join Date: Oct 2009
Location: England
Posts: 16
Reputation: 0
Default Re: Pawn.Regex - full support of regular expressions

I've downloaded 1.1, however I get the following on server launch:
Code:
Plugin::AmxLoad: .inc-file version does not equal the plugin's version
Run time error 19: "File or function not found"
I am running this on a Windows server.
Arturo226 is offline   Reply With Quote
Old 03/07/2016, 08:23 PM   #13
YourShadow
Big Clucker
 
YourShadow's Avatar
 
Join Date: Apr 2016
Location: Russia
Posts: 95
Reputation: 87
Default Re: Pawn.Regex - full support of regular expressions

Quote:
Originally Posted by Arturo226 View Post
I've downloaded 1.1, however I get the following on server launch:
Code:
Plugin::AmxLoad: .inc-file version does not equal the plugin's version
Run time error 19: "File or function not found"
I am running this on a Windows server.
You need re-compile your gamemode with new Pawn.Regex.inc.
YourShadow is offline   Reply With Quote
Old 03/07/2016, 08:38 PM   #14
Arturo226
Little Clucker
 
Join Date: Oct 2009
Location: England
Posts: 16
Reputation: 0
Default Re: Pawn.Regex - full support of regular expressions

OK, I forgot to actually update the .inc for some reason :P
The run-time error isn't caused by your plugin though.
Arturo226 is offline   Reply With Quote
Old 03/07/2016, 09:54 PM   #15
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,851
Reputation: 2567
Default Re: Pawn.Regex - full support of regular expressions

Quote:
Originally Posted by Meller View Post
Nice I guess, But what makes this so much better than strfind? All difference I can see are it's cleaner.
A regular expression searches for patterns, not a contiguous string of specific characters. I use this site all the time: http://regexr.com/
__________________
Vince is offline   Reply With Quote
Old 12/07/2016, 05:13 AM   #16
Chaprnks
Gangsta
 
Chaprnks's Avatar
 
Join Date: Sep 2007
Location: Soviet America
Posts: 650
Reputation: 41
Default Re: Pawn.Regex - full support of regular expressions

Code:
[07:09:59]  Loading plugin: pawncmd.so
[07:09:59] Pawn.CMD plugin v3.1.2 by urShadow loaded
[07:09:59]   Loaded.
[07:09:59]  Loading plugin: pawnregex.so
[07:09:59] Pawn.Regex plugin v1.1 by urShadow loaded
[07:09:59]   Loaded.

[07:09:59] [debug] Run time error 19: "File or function is not found"
[07:09:59] [debug]  regex_new
[07:09:59] [debug]  regex_check
[07:09:59] [debug]  regex_delete
[07:09:59] [debug] Run time error 19: "File or function is not found"
[07:09:59] [debug]  regex_new
[07:09:59] [debug]  regex_check
[07:09:59] [debug]  regex_delete
[07:09:59] Script[gamemodes/main.amx]: Run time error 19: "File or function is not found"
Ironically, this error only seemed to produce when I implemented Pawn.CMD in combination with Pawn.Regex







While fiddling around with this issue; I found out something even more bizarre. I swapped the load order of Pawn.CMD & Pawn.Regex; and now this is what returns "file/function not found":

Code:
[07:24:30]  Loading plugin: pawnregex.so
[07:24:30] Pawn.Regex plugin v1.1 by urShadow loaded
[07:24:30]   Loaded.
[07:24:30]  Loading plugin: pawncmd.so
[07:24:30] Pawn.CMD plugin v3.1.2 by urShadow loaded
[07:24:30]   Loaded.

[07:24:30] [debug] Run time error 19: "File or function is not found"
[07:24:30] [debug]  PC_EmulateCommand
[07:24:30] [debug]  PC_RegAlias
[07:24:30] [debug] Run time error 19: "File or function is not found"
[07:24:30] [debug]  PC_EmulateCommand
[07:24:30] [debug]  PC_RegAlias
[07:24:30] Script[gamemodes/main.amx]: Run time error 19: "File or function is not found"
Chaprnks is offline   Reply With Quote
Old 23/07/2016, 11:59 AM   #17
Kamper
Huge Clucker
 
Join Date: Dec 2014
Posts: 475
Reputation: 54
Default Re: Pawn.Regex - full support of regular expressions

Actually i'm trying your plugin on my project but i got this message



how could i fix that?
__________________
# definitivamente fora do fórum
Kamper is offline   Reply With Quote
Old 23/07/2016, 12:30 PM   #18
YourShadow
Big Clucker
 
YourShadow's Avatar
 
Join Date: Apr 2016
Location: Russia
Posts: 95
Reputation: 87
Default Re: Pawn.Regex - full support of regular expressions

Quote:
Originally Posted by Kamper View Post
Actually i'm trying your plugin on my project but i got this message



how could i fix that?
I need a full .log file.
YourShadow is offline   Reply With Quote
Old 23/07/2016, 04:02 PM   #19
Kamper
Huge Clucker
 
Join Date: Dec 2014
Posts: 475
Reputation: 54
Default Re: Pawn.Regex - full support of regular expressions

Quote:
Originally Posted by YourShadow View Post
I need a full .log file.
There's nothing more on the console about the error. Just those messages.
__________________
# definitivamente fora do fórum
Kamper is offline   Reply With Quote
Old 26/07/2016, 09:27 PM   #20
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Location: Romania
Posts: 1,857
Reputation: 305
Default Re: Pawn.Regex - full support of regular expressions

Is this plugin more stable than Fro1sha's plugin ? I heard that the old one may have crashes, even if I had none with it yet. Can we get some speed comparisons ?
__________________


IstuntmanI 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] Regular Expressions Plugin v0.2 (RegEx) Koala818 Plugin Development 22 09/09/2016 07:36 AM
[Tutorial] Converting to ALS 4 (Hook Method 7) Very Quickly With Regular Expressions [HLF]Southclaw Tutorials 1 29/07/2014 08:12 PM
Need help and full support monkuttan Server Support 33 16/11/2013 02:35 PM
expressions string to expressions? iJumbo Scripting Help 9 05/05/2013 12:56 AM
[REGEX] Acceptable nickname regular expression ikkentim Scripting Help 1 29/01/2013 08:13 PM


All times are GMT. The time now is 08:56 PM.


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