Search Results
Having a huge query to save account flags in a single table is fine. It's not ideal, but it's *fine*. Long as you know what you're doing the worst thing that'll happen is it just being annoying to wor...
658
The only way to effectivelly do this would be to use apID as the index. Other way would be to set apID to the id on each array at the same time, and letting each enum have a cache variable to hold th...
273
All of the lines on the error log are super far away from each other so the snippet you provided won't suffice. We also have no way to know which of those lines is contained in the snippet you sent. P...
499
There's no easier way since the last DCC update. It shouldn't be that hard anyways, you'll just need to fetch those two things at the top of the callback. And of course, DCC_GetMessageContent for the ...
339
What Runn3R said should work. Alternatively, you should take your measurement for a single cycle, and reset it everytime the bus stops in the starting place, with a vehicle checkpoint as well.
392
Quote: Originally Posted by m4karow If you using y_hooks why don't you use y_vehicledata instead creating another array for vehicle names? y_hooks is optional, hence the compiler checks...
2,887
An easy-to-implement 3D Speedometer. - Include with y_hooks and it will work inmediatly. - If you don't have y_hooks then making it work is as simple as pasting a few lines of code in 4 callbacks. - ...
2,887
What's wrong with that? IMO it's the best approach for this solution. To answer your question though, there's this: Code: stock bool:FALSE = false; new scmExStr[144]; #define SendClientMessageEx(%0...
131
Memory sizes are meaningless for speed, lowering memory usage won't improve anything since no script will ever use more than 300mb of ram anyways. What should concern you is performance profilings in...
197
Quote: Originally Posted by Uberanwar How do you estimate the size? Based on what exactly are the estimations, to set pragma dynamic value? If you mean the amount of heap that your scri...
169
Heap/stack size max. usage estimations are based, mostly, on how much depth of function calls your script might fall into. Provided there is no recursion, in which case it'd theoretically be infinite....
169
Seems the sscanf plugin requires the universal C runtime, which you can find clicking here
436
Quote: Originally Posted by rockys So is recommanded to be 0? Certain scripts might not compile properly with compact encoding enabled. I reckon perhaps scripts which handle strings in ...
148
The "#pragma compress" directive toggles wether or not the compiler's generated bytecode will be in either compact or plain encoding. If the value is anything but zero, compact encoding is used, other...
148
The solution above is good, but to do it yourself, basically: - Keep constant track of the position of the players who have ongoing streams. - Have a player variable ("Listening") for everyone which ...
110
For future reference, keep in mind using "&" instead of "==" is ideal for key state. This is because & functions as a bit-wise "and", meaning it'll check for that key being pressed instead of ...
126
Quote: Originally Posted by Kwarde A non-emit alternative: Code: stock bool:FALSE = false; new scmExStr[144]; #define SendClientMessageEx(%0,%1,%2,%3) do{format(scmExStr,144,%2,%3);SendC...
364
#emit is a way to write in-line P-Code/Bytecode (Pawn's compiled "Assembly" so to speak). This is often done to either bypass limitations of the language, obsfucate code, increase execution speed (b...
364
Quote: Originally Posted by TheLeech Not so long ago I think someone was making a include or plugin or something that would get someone's HWID and mac address, not sure if they ever releas...
315