Search Results
Most of each client's data is indeed cached in the server. In this case passing-by-reference has little to no impact on the code speed, it's more probable that return value was intended to be used as ...
525
It already exists and you can compile it, though it's command-line based.
348
I'd suggest for somewhat effective missing brackets finder to perform following steps: 1. preprocess input file(via pawncc with switch) 2. consider brackets in strings and any other possible place aft...
797
Today I learned: You can do stuff like pawn Код: #tryinclude test"#tryinclude test> Also if you try: pawn Код: #tryinclude a_samp"#assert defined a_samp" As expected you get compile-time as...
39,391
The one important thing you gain with good indentation is easily avoidable dangling-else problem.(Interestingly this reason is explicitly stated in compiler sources)
2,036
Quote: Originally Posted by Vince No. More DirectX stuff will completely destroy the feel of the game. This is still a mod for GTA SA, not a standalone game. LOL? Absurd! DirectX is jus...
6,584
The fundamental workings of y_commands and zcmd are actually simple and quite reasonable. If you have a command named "testcmd" its faster to call a function with that name directly(actually all funct...
631
Today I learned you can have (almost) arbitrary placed numeric placeholders(they are skipped while parsing though): All of these are valid: Code: 0b_10_1 0x_1DEAD 1_3_4_5 1_2.1_e-4 And as a added bon...
39,391
You can try to add the "samp compatible" patches by ZeeX that are located here: "https://github.com/Zeex/pawn-3.2.3664_patches/tree/master/samp_compatible"
217
Quote: Originally Posted by Stewie` Actually, strtok in most of cases (using with zcmd-based command processor) is faster than sscanf and is almost the same as explode. Not to mention it's...
631
YSI Server Includes as a base framework and modules system such as PAWN-Boilerplate by Slice(which also includes YSI and some other cool stuff.)
631
Quote: I am advanced / professional coder and i require of code purity. You are not. Also learn proper English.
425
I'd say mini-mode and y_properties should be priority. YSI Documentation should really be taken care by other scripters because you do not need that much of a knowledge to document YSI, just a lot of ...
1,555
There should be some slight speed gain by using C++ because AFAIK in samp-gdk, when calling native, samp-gdk hooks amx_Register and intercepts all the natives so you have a direct access to that funct...
396
use load.s.pri instead of const.pri (same thing with ALT)
223
You can get required patches from ZeeX's github repo, the download link is also provided.
1,048
switch is implemented just as a if-elseif-else in current Pawn VM so you are doing pretty much the same slow stuff.
358
Lookup Slice's project called PAWN-Boilerplate, though unreleased yet, I find it very mature and it serves exactly to make building a new gamemode easier. Why start from scratch, when you can build on...
1,324
Today I learned that pattern name is called prefix. The prefix is the part of pattern that begins at the beginning of the pattern and ends on first occurrence of non-alphabetic character. Note: in thi...
39,391
Quote: Originally Posted by Arca Today I learned that using static to initialize variable inside a loop is much more efficient than using new. That's untrue, static variable is a global...
39,391