katursis / Pawn.CMD

🚀 Plugin-powered command processor for SA:MP server
MIT License
119 stars 13 forks source link

Crash Server #68

Closed TheAhriman closed 2 months ago

TheAhriman commented 2 months ago

Hello. I noticed this situation that if I enter a command in chat " 3" (with a space), then OnPlayerCommandReceived in cmd comes //3. This is one of the observations. At the same time, if you enter the command through a space, the server just crashes, without any logs, but with an error - Segmentation fault.

I already tried to do just return 1, but it doesn't solve the problem, so I'm sure that the problem is not in my code

[11/06 09:58:37] public OnPlayerCommandReceived (playerid=1, cmd[]=@03934fcc "//3", params[]=@0000002f "", flags=47)
[11/06 09:58:37] pprofs (fi=832)
[11/06 09:58:37] native format ()
[11/06 09:58:37] native fseek ()
[11/06 09:58:37] native fwrite ()
[11/06 09:58:37] native IsPlayerNPC ()
TheAhriman commented 2 months ago

I apologize for creating a topic. The problem was found, it was in one of the include files. There was a call of this function without parameters and flag.