Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 415 online users. » 0 Member(s) | 413 Guest(s) Bing, Google
|
Latest Threads |
Command does not work in-...
Forum: Pawn Scripting
Last Post: PANZEHIR_
2024-11-23, 06:36 PM
» Replies: 0
» Views: 41
|
White Screen
Forum: Support
Last Post: Phat202146_real
2024-11-21, 02:50 PM
» Replies: 0
» Views: 38
|
I get error 021 using y_h...
Forum: Pawn Scripting
Last Post: daniscript18
2024-11-18, 11:34 PM
» Replies: 0
» Views: 55
|
Il reste des français sur...
Forum: French/Fran?ais
Last Post: tysanio
2024-11-18, 05:39 AM
» Replies: 2
» Views: 465
|
Object creation issues
Forum: Programming
Last Post: K1271
2024-11-15, 11:51 PM
» Replies: 0
» Views: 56
|
Is the SAMP Hosting the s...
Forum: General Discussions
Last Post: OperaGX
2024-11-14, 09:33 PM
» Replies: 0
» Views: 74
|
Run time error 19: "File ...
Forum: Pawn Scripting
Last Post: Rexey
2024-11-14, 03:50 AM
» Replies: 0
» Views: 64
|
How to Compile Your Gamem...
Forum: Tutorials
Last Post: thelante
2024-11-13, 08:50 AM
» Replies: 3
» Views: 467
|
Modeller wanted
Forum: Development Updates
Last Post: acc.gangbeni
2024-11-11, 05:10 PM
» Replies: 9
» Views: 16,502
|
SA:MP forum offline
Forum: Portuguese/Portugu?s
Last Post: weslley_script
2024-11-09, 05:27 PM
» Replies: 7
» Views: 9,926
|
|
|
Request for cleaner library logs in the console |
Posted by: Freaksken - 2019-06-27, 05:32 AM - Forum: General Discussions
- Replies (7)
|
|
Request for plugin/include developers to stop doing shit like this:
Code: ----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
gamemodetext = "Unknown" ?(string)
password = "" ?(string)
bind = "" ?(string)
nosign = "" ?(string)
Server Plugins
--------------
Loading plugin: mysql
>> plugin.mysql: R41-4 successfully loaded.
?Loaded.
Loading plugin: sscanf
===============================
? ? ?sscanf plugin loaded. ? ?
? ? ? ? Version: ?2.8.3 ? ? ? ?
?(c) 2018 Alex "Y_Less" Cole ?
===============================
?Loaded.
Loading plugin: streamer
*** Streamer Plugin v2.9.4 by Incognito loaded ***
?Loaded.
Loading plugin: FCNPC
-------------------------------------------------
? ? FCNPC - Fully Controllable NPC v2.0.0
? ? ? ? ? ?Windows SA-MP 0.3.7 R2
? ? ? ? ? Jun 25 2019 at 00:12:08
?Author: ? ? ? OrMisicL (2013 - 2015)
?Continued by: ziggi ? ?(2016 - present)
?See full credits in the README.md file
-------------------------------------------------
Loading...
-------------------------------------------------
? ColAndreasv1.4.0
? Created By:
? ? [uL]Chris42O
? ? [uL]Slice
? ? [uL]Pottus
-------------------------------------------------
Loading...
ColAndreas v1.4.0 Loaded.
?Loaded.
Loading plugin: timerfix
?>> TimerFix v1.5 successfully loaded.
?Loaded.
Loading plugin: YSF
ARRAY_ConsoleCommands: 4e43d8
===============================
? ? ? ?YSF - kurta999's version R19 loaded
? (c) 2008 Alex "Y_Less" Cole - (c) 2010 - 2016 kurta999
? ?Server version: 0.3.7 R2-1
? ?Operating System: Windows
? ?Built on: Mar 11 2017 at 10:32:34
===============================
?Loaded.
Loaded 6 plugins.
Started server on port: 7777, with maxplayers: 50 lanmode is OFF.
Filterscripts
---------------
?Loading filterscript 'example.amx'...
Loaded collision data.
?Loaded 1 filterscripts.
[MySQL] Error: 2002 Can't connect to MySQL server on 'localhost' (10061).
Loading Map.
Loaded Map.
Number of vehicle models: 94
--- Server Shutting Down.
plugin.mysql: Unloading plugin...
plugin.mysql: Plugin unloaded.
===============================
? ? sscanf plugin unloaded. ? ?
===============================
*** Streamer Plugin v2.9.4 by Incognito unloaded ***
FCNPC Unloaded.
[plugin.timerfix] Plugsin successfully unloaded!
==============
?YSF - kurta999's version R19 unloaded
==============
Example of what it could be, without all of this cluttering:
Code: SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
Plugins
--------------
?Loading plugin: mysql
vR41-4
? Loaded.
?Loading plugin: sscanf
v2.8.3
? Loaded.
?Loading plugin: streamer
v2.9.4
? Loaded.
?Loading plugin: colandreas
v1.4.0
? Loaded.
?Loading plugin: FCNPC
v2.0.0
? Loaded.
?Loading plugin: timerfix
v1.5.0
? Loaded.
?Loading plugin: YSF
vR19
? Loaded.
?Loaded 7 plugins.
Filterscripts
---------------
?Loading filterscript: example
? Loaded.
?Loaded 1 filterscripts.
Gamemode
---------------
?Loading gamemode: bare
[MySQL] Error: 2002 Can't connect to MySQL server on 'localhost' (10061).
[ColAndreas] Info: Loading collision data.
[ColAndreas] Info: Loading Map.
? Loaded.
--- Server Shutting Down.
?Unloading gamemode: bare
? Unloaded.
?Unloading plugin: mysql
? Unloaded.
?Unloading plugin: sscanf
? Unloaded.
?Unloading plugin: streamer
? Unloaded.
?Unloading plugin: colandreas
? Unloaded.
?Unloading plugin: FCNPC
? Unloaded.
?Unloading plugin: timerfix
? Unloaded.
?Unloading plugin: YSF
? Unloaded.
?Unloaded 7 plugins.
Now ask yourself,?which of these 2 examples?would?you like to consult, when for once?you really really need to.
Some of this is clutter is baked into the server itself, but arguably?those logs are somewhat useful. However, pretty much all of the logs done during?plugin/include init and exit?have no benefit, except for maybe the version number during init.
Why is this credits clutter so?necessary? It's annoying and makes your logs actually less readable and useful. Imagine if every time?you used a third party?library in C and started your program, some credits shit about that library gets printed to the console. Sometimes those libraries are written by lots and lots of people. Now imagine not using just 1 third party library...?For some reason this is just a thing that happens in this community. I'm guessing because 1 person did it in the early days and everyone else just followed.
So, I propose a few guidelines for readable,?consistent and?actually useful?logs:
- On plugin/include init, only print the version number?using the following format: v1.0.0
- On plugin/include exit, don't print anything.
- During the lifetime of the plugin/include, use one of these formats for different types of messages:
- Info messages:?[LIBRARY_NAME] Info: YOUR_MESSAGE.
- Error messages:?[LIBRARY_NAME] Error: YOUR_MESSAGE.
- Warning messages:?[LIBRARY_NAME] Warning: YOUR_MESSAGE.
- You can break rule 1 and 2 only if you're absolutely sure that what you need to log is very useful information and that you?use the formats from rule 3.
What follows?are?examples for each rule, taken from the cleaned up code snippet above.
Rule 1:
Just the version number,?preferably using semantic versioning.
Rule 2:
Nothing, as mentioned.
Rule 3:
Info and error messages.
Code: [ColAndreas] Info: Loading Map.
[MySQL] Error: 2002 Can't connect to MySQL server on 'localhost' (10061).
Rule 4:
Loading the ColAndreas collision data is useful information to know.
Code: [ColAndreas] Info: Loading collision data.
I'm not asking for people not to be credited for their work. I'm asking to stop this stupid console cluttering.
Now, let's all start doing this and Make Logs Great Again!
Log and config files:
Adding to this, when a library has its own dedicated log file (e.g. mysql.log) it should go in the?logs?folder in the root of the server directory. Alternatively, if the library uses more than 1 log file, all those files should be together in a folder (e.g. logs/mysql). Configuration files (e.g. YSF.cfg) should go in the configs?folder in the root of the server directory. Alternatively, if the library uses more than 1 config file, all those files should be together in a folder (e.g. configs/mysql).
|
|
|
easyDialog & pawn compiler |
Posted by: Zow - 2019-06-25, 05:47 AM - Forum: Pawn Scripting
- Replies (1)
|
|
F:\S\pawno\include\easyDialog.inc(95) : error 035: argument type mismatch (argument 4)
F:\S\pawno\include\easyDialog.inc(99) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.10.9? ? ?Copyright © 1997-2006, ITB CompuPhase
2 Errors.
I use them both
easyDialog : https://github.com/Awsomedude/easyDialog
samp-stdlib : https://github.com/sampctl/samp-stdlib
Code: ShowPlayerDialog(playerid, 32700, style, caption, string, button1, button2); // line 95
ShowPlayerDialog(playerid, 32700, style, caption, info, button1, button2); // line 99
|
|
|
[Showcase] Dynamic Gate System |
Posted by: Stefhan - 2019-06-23, 05:25 PM - Forum: Videos and Screenshots
- No Replies
|
|
An incredibly advanced and user-friendly gate system. It is capable of supporting two objects on a single gate to avoid common inconveniences that you see in other scripts. Such as one gate being open whilst the other is closed, or having a garage gate next to a door gate, causing both to open when you really only want one to open.
I have not shown the basic stuff in the video such as setting a password, or setting an owner for the gate. But it works pretty similarly to any other gate system. This video is just a showcase of what I've created and how simple to use it is. I hope you enjoy and feedback/suggestions are very welcome as I'd love to improve this system even further.
postscriptum: you may notice 'textdraws'?in this video that overlap. some of them are from my mods and others are from the gamemode, that's why they appear to be bugged, when they are in fact not.
|
|
|
Another platform for coding. |
Posted by: mouiz - 2019-06-22, 02:14 PM - Forum: Programming
- Replies (10)
|
|
I've learn alot from?those 4-5 years of coding in PAWN, is there another fun game/platform?which?uses a different language?so i can learn that in similar process. Actually,?that is because i learnt pawn for fun?but now i realized how useful this is. Although i learnt HTML and C# from tutorials but that way was not as effective.
|
|
|
??????????? |
Posted by: Armado - 2019-06-22, 09:20 AM - Forum: Russian/???????
- Replies (1)
|
|
??????.??????????????? , ????? ?? ????????? ???????? ?? ????? ??? ? ??? 5??? ??????, ???????? ??????? ? ???? ? ????????.
Hey. I have a question , whether shooting from a car as in GTA 5 will be added? Namely, the driver climbs out the window and shoots.
|
|
|
|