SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 92
Search took 0.00 seconds.
Search: Posts Made By: Reynolds
Forum: Plugin Development 19/12/2015, 09:15 PM
Replies: 312
Views: 138,084
Posted By Reynolds
Re: Socket plugin (v0.2b released)

Yep, I was messing around with the plugin shortly after posting the issue and got it to work by reducing the buffer size to 512 bytes, I just haven't gotten around to actually reporting on it. I was...
Forum: Plugin Development 16/12/2015, 06:17 PM
Replies: 312
Views: 138,084
Posted By Reynolds
Re: Socket plugin (v0.2b released)

There is a buffer overflow vulnerability in this plugin. I've encountered this problem while trying to hack together a small FTP client for a project I'm working on.

I've filed a GitHub issue in...
Forum: Includes 12/12/2015, 08:52 PM
Replies: 10
Views: 1,721
Posted By Reynolds
Re: Rob Pike's regex matcher

The licensing is pretty crappy on this one, you should have chosen something more permissive, this way people won't be able to legally use your code in non-open source projects.
Forum: Includes 12/12/2015, 08:48 PM
Replies: 9
Views: 2,173
Posted By Reynolds
Re: pawn-test: a (ridiculously) simple automated testing framework

A new patch version, pawn-test 2.0.1, has come out.

It fixes an off-by-one memory error in functions that use memcpy() and strlen() at the same time.

The patch version can be downloaded from...
Forum: Plugin Development 30/11/2015, 03:49 PM
Replies: 312
Views: 138,084
Posted By Reynolds
Re: Socket plugin (v0.2b released)

Apparently, replacing the domain name with an IP address did solve the problem. There's some commented code (https://github.com/pBlueG/Socket/blob/master/socket/CSocket.cpp#L89-L95) in the plugin...
Forum: Includes 30/11/2015, 02:37 PM
Replies: 9
Views: 2,173
Posted By Reynolds
Re: pawn-test: a (ridiculously) simple automated testing framework

Again, I would like to quote myself:



The function you've written isn't a unit test because it doesn't test a separable segment of your code and it's not reusable. If it requires extra...
Forum: Includes 30/11/2015, 01:20 PM
Replies: 9
Views: 2,173
Posted By Reynolds
Re: pawn-test: a (ridiculously) simple automated testing framework

This is normally a bad idea. A unit test should do only one thing and shouldn't contain more than one assertion, also they should be able to run in any order. Moreover, each test should test a...
Forum: Includes 30/11/2015, 04:50 AM
Replies: 9
Views: 2,173
Posted By Reynolds
Re: pawn-test: a (ridiculously) simple automated testing framework

Actually, no.

One of the key powers of pawn-test is that it supports xUnit-style testing. You can create test suites, add test cases to it, dynamically skip testing, there's even macros for...
Forum: Includes 29/11/2015, 07:31 PM
Replies: 9
Views: 2,173
Posted By Reynolds
pawn-test: a (ridiculously) simple automated testing framework

pawn-test

pawn-test is a simple automated testing framework for PAWN code. The framework provides a number of functions for setting up and managing test suites and test cases. It was designed to...
Forum: Plugin Development 26/11/2015, 06:42 PM
Replies: 312
Views: 138,084
Posted By Reynolds
Re: Socket plugin (v0.2b released)

I can't seem to get this plugin to connect to anything. Every time I want to connect, I get something like this:


----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated...
Forum: Tools and Files 26/08/2015, 03:04 PM
Replies: 218
Views: 76,552
Posted By Reynolds
Re: SanMap - San Andreas in ****** Maps

This turned out to be way easier to solve than I'd thought. I read ******'s documentation of their Maps API and yeah, the problem was that the div had to be manually resized (which I could've thought...
Forum: Tools and Files 25/08/2015, 11:27 PM
Replies: 218
Views: 76,552
Posted By Reynolds
Re: SanMap - San Andreas in ****** Maps

I have a problem deploying this code on my main site. Specifically, the map doesn't show up on the canvas with the given ID. I tried pasting various parts of the example website's CSS into my own...
Forum: Plugin Development 30/07/2014, 04:05 PM
Replies: 5,553
[Plugin] Streamer Plugin
Views: 3,321,485
Posted By Reynolds
Re: Streamer Plugin

Hello, I use this code to generate a random checkpoint from an SQL table:


RandomGenerateCP(playerid)
{
new result[150], Float:x, Float:y, Float:z, streetname[50];
mysql_query( "SELECT *...
Forum: Scripting Help 30/07/2014, 03:54 PM
Replies: 0
Views: 399
Posted By Reynolds
Dynamic CP destroyed for wrong player

Hello, I use this code to generate a random checkpoint from an SQL table:


RandomGenerateCP(playerid)
{
new result[150], Float:x, Float:y, Float:z, streetname[50];
mysql_query( "SELECT *...
Forum: Plugin Development 14/07/2014, 10:45 PM
Replies: 972
Views: 253,197
Posted By Reynolds
Re: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

Alright, thanks for the confirmation. I am looking forward to the next release even more.

Regarding this bug:
I was writing a code which would have (at least in theory) solved the issue with cars...
Forum: Includes 14/07/2014, 10:36 PM
Replies: 48
Views: 15,278
Posted By Reynolds
Re: Graphic Functions! v.0.1A

It is used to make graphs (x/y graphs).
Forum: Plugin Development 14/07/2014, 10:15 PM
Replies: 6,158
Views: 2,348,657
Posted By Reynolds
Re: [REL] MySQL Plugin (Now on github!)

I totally understand that merely disabling multiple queries won't make my system secure, I just wasn't sure why there was an error given for a seemingly valid query.
Forum: Plugin Development 14/07/2014, 09:33 PM
Replies: 6,158
Views: 2,348,657
Posted By Reynolds
Re: [REL] MySQL Plugin (Now on github!)

I am trying to perform an SQL injection using this plugin on my own server (solely for pentest purposes) and I have a question. I have a command whose input is deliberately unescaped and I am trying...
Forum: Includes 13/07/2014, 11:16 AM
Replies: 48
Views: 15,278
Posted By Reynolds
Re: Graphic Functions! v.0.1A

If you read the topic carefully enough, you'd know it is an example code and not the actual script. Don't be condescending if you don't even know what you are talking about.
Forum: Includes 13/07/2014, 11:12 AM
Replies: 48
Views: 15,278
Posted By Reynolds
Re: Graphic Functions! v.0.1A

Does anyone still have this inc? I really need it.
Forum: Scripting Help 13/07/2014, 10:26 AM
Replies: 1
Views: 346
Posted By Reynolds
Re: Cycling through indefinite amount of delimited items

Indeed it is true, I am using SQL for a long time now until now I have had no problems with doing that. Currently, my main issue is the following: I have an NPC dialog system which stores questions...
Forum: Scripting Help 13/07/2014, 10:14 AM
Replies: 1
Views: 346
Posted By Reynolds
Cycling through indefinite amount of delimited items

Hi! I can't really phrase my question better without being too specific. I want to have a general answer to my question. Suppose I had an SQL field with the following data:


name: asd
value:...
Forum: Plugin Development 13/07/2014, 12:25 AM
Replies: 972
Views: 253,197
Posted By Reynolds
Re: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

I'm feelin' lucky! That update would solve many problems I've been having with real-time NPC plugins. Will it be possible to change the NPC's angular velocity in the future to improve vehicle turns?...
Forum: Plugin Development 12/07/2014, 11:38 PM
Replies: 972
Views: 253,197
Posted By Reynolds
Re: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

I made something which kind of does that. Now I am only having issues with high slopes (such as highway turnoffs). I am thinking of setting the car's quats to the atan of x and y differences so that...
Forum: Filterscripts 10/07/2014, 12:28 PM
Replies: 1,170
Sticky: Useful Snippets
Views: 602,037
Posted By Reynolds
Re: Useful Snippets

This is almost the least mantainable code I've ever seen. If you do want that, simply use gettime() for a UNIX timestamp.


new DateTimestamp[playerid];

public OnPlayerConnect(playerid)
{
...
Showing results 1 to 25 of 92

 

All times are GMT. The time now is 12:09 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.