[Plugin] Pawn.CMD

Quote:
Originally Posted by m3shys
View Post
how much work does it take for converting from zcmd? it seems similar in syntax

also is there really a point with modern hardware in regards to it actually adding any performance?
The performance on any machine has never really been an issue besides with DCMD for example. No conversion is needed, just change the include from ZCMD to Pawn.CMD
Reply

How can lock commands, I can lock commands y the command is processed, I have return 0, what will the problem?
Reply

SERVER: Unknown command. What's the problem?



[Pawn.CMD] PC_RegAlias: Command name 'mm' is occupied
[Pawn.CMD] PC_RegAlias: Command name 'r' is occupied
[Pawn.CMD] PC_RegAlias: Command name 'b' is occupied
[Pawn.CMD] PC_RegAlias: bad conversion
[Pawn.CMD] PC_RegAlias: bad conversion
Reply

Quote:
Originally Posted by YourShadow
View Post
No. Pawn.RakNet uses an outdated algorithm of caching.
I've been having a bizarre issue. Pawn.CMD 3.3.0 works perfectly on a linux host, but completely unusable on a windows host.

There are zero runtime logs in the server_log, but every command returns: (only on windows)
Code:
SERVER: Unknown command.
I've tried it with the pawncmd.cfg UseCaching true & UseCaching false.
Reply

My commands still do not work


UseCaching true & UseCaching false - did not help.
Reply

Quote:
Originally Posted by bgAndroid
View Post
SERVER: Unknown command. What's the problem?



[Pawn.CMD] PC_RegAlias: Command name 'mm' is occupied
[Pawn.CMD] PC_RegAlias: Command name 'r' is occupied
[Pawn.CMD] PC_RegAlias: Command name 'b' is occupied
[Pawn.CMD] PC_RegAlias: bad conversion
[Pawn.CMD] PC_RegAlias: bad conversion
Can you post here full server_log.txt and example of your code with aliases?
Reply

PHP Code:
flags:resetb(FLAGS_ADMIN_COMMAND)
alias:resetb("b")
cmd:resetb(playeridparams[])
{
//
    
return 1;

PHP Code:
----------
Loaded log file"server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[16:50:22filterscripts ""  (string)
[
16:50:22
[
16:50:22Server Plugins
[16:50:22] --------------
[
16:50:22]  Loading plugincrashdetect
[16:50:22]   CrashDetect plugin 4.19.4
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginstreamer
[16:50:22
*** 
Streamer Plugin v2.9.4 by Incognito loaded ***
[
16:50:22]   Loaded.
[
16:50:22]  Loading pluginsscanf
[16:50:22
[
16:50:22]  ===============================
[
16:50:22]       sscanf plugin loaded.     
[
16:50:22]          Version:  2.8.3        
[16:50:22]   (c2018 Alex "******" Cole  
[16:50:22]  ===============================
[
16:50:22]   Loaded.
[
16:50:22]  Loading pluginmysql
[16:50:22]  >> plugin.mysqlR41-4 successfully loaded.
[
16:50:22]   Loaded.
[
16:50:22]  Loading pluginpawncmd
[16:50:22] [Pawn.CMDplugin v3.3.0 by urShadow loaded
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginpawnregex
[16:50:22] [Pawn.Regexplugin v1.1.3 by urShadow loaded
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginpawnraknet
[16:50:22] [Pawn.RakNet
    | 
Pawn.RakNet 1.4.0 2016 2020
    
|--------------------------------
    | 
Author and maintainerurShadow
    
CompiledMay  3 2020 at 12:56:43
    
|--------------------------------------------------------------
    | 
Forum threadhttps://forum.sa-mp.com/showthread.php?t=640306
    
|--------------------------------------------------------------
    | 
Repositoryhttps://github.com/urShadow/Pawn.RakNet
    
|--------------------------------------------------------------
    | 
Wikihttps://github.com/urShadow/Pawn.RakNet/wiki
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginColAndreas
[16:50:22] *********************
[
16:50:22] ** Created By:     **
[
16:50:22] ** [uL]Chris42O    **
[
16:50:22] ** [uL]Slice       **
[
16:50:22] ** [uL]Pottus      **
[
16:50:22] *********************
[
16:50:25Loaded collision data.
[
16:50:25] *********************
[
16:50:25]   ColAndreas Loaded
[16:50:25]    v1.4.0
[16:50:25] *********************
[
16:50:25]   Loaded.
[
16:50:25]  Loaded 8 plugins.
[
16:50:25
[
16:50:25Filterscripts
[16:50:25] ---------------
[
16:50:25]   Loaded 0 filterscripts.
[
16:50:25] [Pawn.CMDPC_RegAliasCommand name 'mm' is occupied
[16:50:25] [Pawn.CMDPC_RegAliasCommand name 'r' is occupied
[16:50:25] [Pawn.CMDPC_RegAliasCommand name 'b' is occupied
[16:50:25] [Pawn.CMDPC_RegAliasbad conversion
[16:50:25] [Pawn.CMDPC_RegAliasbad conversion
[16:50:25Loading Map.
[
16:50:26Loaded Map.                             
[
16:50:26
[
16:50:26Number of vehicle models42 
Reply

Quote:
Originally Posted by Chaprnks
View Post
I've been having a bizarre issue. Pawn.CMD 3.3.0 works perfectly on a linux host, but completely unusable on a windows host.

There are zero runtime logs in the server_log, but every command returns: (only on windows)
Code:
SERVER: Unknown command.
I've tried it with the pawncmd.cfg UseCaching true & UseCaching false.
Quote:
Originally Posted by bgAndroid
View Post
PHP Code:
flags:resetb(FLAGS_ADMIN_COMMAND)
alias:resetb("b")
cmd:resetb(playeridparams[])
{
//
    
return 1;

PHP Code:
----------
Loaded log file"server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[16:50:22filterscripts ""  (string)
[
16:50:22
[
16:50:22Server Plugins
[16:50:22] --------------
[
16:50:22]  Loading plugincrashdetect
[16:50:22]   CrashDetect plugin 4.19.4
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginstreamer
[16:50:22
*** 
Streamer Plugin v2.9.4 by Incognito loaded ***
[
16:50:22]   Loaded.
[
16:50:22]  Loading pluginsscanf
[16:50:22
[
16:50:22]  ===============================
[
16:50:22]       sscanf plugin loaded.     
[
16:50:22]          Version:  2.8.3        
[16:50:22]   (c2018 Alex "******" Cole  
[16:50:22]  ===============================
[
16:50:22]   Loaded.
[
16:50:22]  Loading pluginmysql
[16:50:22]  >> plugin.mysqlR41-4 successfully loaded.
[
16:50:22]   Loaded.
[
16:50:22]  Loading pluginpawncmd
[16:50:22] [Pawn.CMDplugin v3.3.0 by urShadow loaded
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginpawnregex
[16:50:22] [Pawn.Regexplugin v1.1.3 by urShadow loaded
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginpawnraknet
[16:50:22] [Pawn.RakNet
    | 
Pawn.RakNet 1.4.0 2016 2020
    
|--------------------------------
    | 
Author and maintainerurShadow
    
CompiledMay  3 2020 at 12:56:43
    
|--------------------------------------------------------------
    | 
Forum threadhttps://forum.sa-mp.com/showthread.php?t=640306
    
|--------------------------------------------------------------
    | 
Repositoryhttps://github.com/urShadow/Pawn.RakNet
    
|--------------------------------------------------------------
    | 
Wikihttps://github.com/urShadow/Pawn.RakNet/wiki
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginColAndreas
[16:50:22] *********************
[
16:50:22] ** Created By:     **
[
16:50:22] ** [uL]Chris42O    **
[
16:50:22] ** [uL]Slice       **
[
16:50:22] ** [uL]Pottus      **
[
16:50:22] *********************
[
16:50:25Loaded collision data.
[
16:50:25] *********************
[
16:50:25]   ColAndreas Loaded
[16:50:25]    v1.4.0
[16:50:25] *********************
[
16:50:25]   Loaded.
[
16:50:25]  Loaded 8 plugins.
[
16:50:25
[
16:50:25Filterscripts
[16:50:25] ---------------
[
16:50:25]   Loaded 0 filterscripts.
[
16:50:25] [Pawn.CMDPC_RegAliasCommand name 'mm' is occupied
[16:50:25] [Pawn.CMDPC_RegAliasCommand name 'r' is occupied
[16:50:25] [Pawn.CMDPC_RegAliasCommand name 'b' is occupied
[16:50:25] [Pawn.CMDPC_RegAliasbad conversion
[16:50:25] [Pawn.CMDPC_RegAliasbad conversion
[16:50:25Loading Map.
[
16:50:26Loaded Map.                             
[
16:50:26
[
16:50:26Number of vehicle models42 
Try CaseInsensitivity=false or LocaleName="C".

And post here your pawncmd.cfg.
Reply

PHP Code:
#define FLAGS_CHAT_COMMAND 1
#define FLAGS_ADMIN_COMMAND 2 
pawncmd.cfg - empty file

The above methods did not solve my problem.
Reply

Quote:
Originally Posted by bgAndroid
View Post
PHP Code:
flags:resetb(FLAGS_ADMIN_COMMAND)
alias:resetb("b")
cmd:resetb(playeridparams[])
{
//
    
return 1;

PHP Code:
----------
Loaded log file"server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[16:50:22filterscripts ""  (string)
[
16:50:22
[
16:50:22Server Plugins
[16:50:22] --------------
[
16:50:22]  Loading plugincrashdetect
[16:50:22]   CrashDetect plugin 4.19.4
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginstreamer
[16:50:22
*** 
Streamer Plugin v2.9.4 by Incognito loaded ***
[
16:50:22]   Loaded.
[
16:50:22]  Loading pluginsscanf
[16:50:22
[
16:50:22]  ===============================
[
16:50:22]       sscanf plugin loaded.     
[
16:50:22]          Version:  2.8.3        
[16:50:22]   (c2018 Alex "******" Cole  
[16:50:22]  ===============================
[
16:50:22]   Loaded.
[
16:50:22]  Loading pluginmysql
[16:50:22]  >> plugin.mysqlR41-4 successfully loaded.
[
16:50:22]   Loaded.
[
16:50:22]  Loading pluginpawncmd
[16:50:22] [Pawn.CMDplugin v3.3.0 by urShadow loaded
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginpawnregex
[16:50:22] [Pawn.Regexplugin v1.1.3 by urShadow loaded
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginpawnraknet
[16:50:22] [Pawn.RakNet
    | 
Pawn.RakNet 1.4.0 2016 2020
    
|--------------------------------
    | 
Author and maintainerurShadow
    
CompiledMay  3 2020 at 12:56:43
    
|--------------------------------------------------------------
    | 
Forum threadhttps://forum.sa-mp.com/showthread.php?t=640306
    
|--------------------------------------------------------------
    | 
Repositoryhttps://github.com/urShadow/Pawn.RakNet
    
|--------------------------------------------------------------
    | 
Wikihttps://github.com/urShadow/Pawn.RakNet/wiki
[16:50:22]   Loaded.
[
16:50:22]  Loading pluginColAndreas
[16:50:22] *********************
[
16:50:22] ** Created By:     **
[
16:50:22] ** [uL]Chris42O    **
[
16:50:22] ** [uL]Slice       **
[
16:50:22] ** [uL]Pottus      **
[
16:50:22] *********************
[
16:50:25Loaded collision data.
[
16:50:25] *********************
[
16:50:25]   ColAndreas Loaded
[16:50:25]    v1.4.0
[16:50:25] *********************
[
16:50:25]   Loaded.
[
16:50:25]  Loaded 8 plugins.
[
16:50:25
[
16:50:25Filterscripts
[16:50:25] ---------------
[
16:50:25]   Loaded 0 filterscripts.
[
16:50:25] [Pawn.CMDPC_RegAliasCommand name 'mm' is occupied
[16:50:25] [Pawn.CMDPC_RegAliasCommand name 'r' is occupied
[16:50:25] [Pawn.CMDPC_RegAliasCommand name 'b' is occupied
[16:50:25] [Pawn.CMDPC_RegAliasbad conversion
[16:50:25] [Pawn.CMDPC_RegAliasbad conversion
[16:50:25Loading Map.
[
16:50:26Loaded Map.                             
[
16:50:26
[
16:50:26Number of vehicle models42 
Quote:
Originally Posted by bgAndroid
View Post
PHP Code:
#define FLAGS_CHAT_COMMAND 1
#define FLAGS_ADMIN_COMMAND 2 
pawncmd.cfg - empty file

The above methods did not solve my problem.
Check PM.
Reply

3.3.1:
  • Fixed Windows issues
3.3.2 (hotfix):
  • Fixed UB (server crashing)
Reply

pawn Code:
alias:cuff("cu"); //error 010: invalid function or declaration
CMD:cuff(playerid, params[])
{
   //etc
   return true;
}
What reason?

RU > (Что я вообще делаю не так? Вроде макрос alias должен работать стабильно).
Reply

Quote:
Originally Posted by YourShadow
View Post
Semicolons at the end of alias and flags declarations not allowed now
This.
Reply

Since last update i have something like this in server_log, where should i look next?

Code:
[Pawn.CMD] ToLower: wstring_convert::from_bytes
Reply

Quote:
Originally Posted by David (Sabljak)
View Post
Since last update i have something like this in server_log, where should i look next?

Code:
[Pawn.CMD] ToLower: wstring_convert::from_bytes
https://github.com/urShadow/Pawn.CMD/issues/23
Reply

Awesome, I was just wondering, I've downloaded linux and windows files. Apparently, only linux contains the .inc, is that purposefully done or has the include been updated?
Reply

Quote:
Originally Posted by YourShadow
View Post
Thanks, will try.!
Reply

https://prnt.sc/sxt9am
https://prnt.sc/sxta91

why does it appear like this from the new version?
Reply

Quote:
Originally Posted by Florin48
View Post
https://prnt.sc/sxt9am
https://prnt.sc/sxta91

why does it appear like this from the new version?
https://forum.sa-mp.com/showpost.php...&postcount=481
Reply

3.3.3:
  • Fixed "bad conversion" error
  • Updated samp-ptl to the latest version
Reply


Forum Jump:


Users browsing this thread: 12 Guest(s)