SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 19 of 19
Search took 0.00 seconds.
Search: Posts Made By: PatrickGTR
Forum: Scripting Help 03/07/2020, 01:20 PM
Replies: 3
Views: 108
Posted By PatrickGTR
Re: Saving decimal into integer variable

use floatround, it would round it up to the nearest value.
Forum: Scripting Help 31/05/2020, 06:45 PM
Replies: 11
Views: 322
Posted By PatrickGTR
Re: Const Correctness with Pawno Compiler version 3.10.10

preLoadAnim(playerid, const animlib[]) return ApplyAnimation(playerid,animlib,"null", 0.0, 0, 0, 0, 0, 0 );


should be

preLoadAnim(playerid, const animlib[]) return...
Forum: Scripting Help 25/04/2020, 04:02 AM
Replies: 2
Views: 163
Posted By PatrickGTR
Re: Bribe Pickups Locations

$3345 = Pickup.Create(#BRIBE, 15, 2743.0, 1316.0, 8.0)
$3346 = Pickup.Create(#BRIBE, 15, 2168.66, 2267.96, 15.34)
$3347 = Pickup.Create(#BRIBE, 15, 2408.0, 1389.0, 22.0)
$3348 =...
Forum: Includes 24/04/2020, 03:28 PM
Replies: 13
Views: 7,242
Posted By PatrickGTR
Re: Creating a robbable actor!

sorry, should be sorted now, updated!
Forum: Includes 07/04/2020, 04:06 PM
Replies: 6
Views: 2,208
Posted By PatrickGTR
Re: MySQL Prepared Statements

Library updated.

- DEBUG renamed to MYSQL_PREPARE_DEBUG for unique naming & avoid conflict with other script.
- SET debug to false by default.

Let me know what you think, the library is pretty...
Forum: Tools and Files 19/06/2019, 05:56 PM
Replies: 3
Views: 3,563
Posted By PatrickGTR
Re: User Control Panel [Bootstrap, Python, MySQL]

thanks



Well first of all this is not for beginners, to be able to install this you need to have

python and some knowledge and the rest is pretty straight forward.
Forum: Tools and Files 15/06/2019, 06:17 AM
Replies: 3
Views: 3,563
Posted By PatrickGTR
User Control Panel [Bootstrap, Python, MySQL]

Demo: Okay, take me there (https://ucpdemo.herokuapp.com/home/)
Download & Installation: Okay, give me the source code (https://github.com/PatrickGTR/PyUCP)


Preview:...
Forum: Includes 07/06/2019, 11:38 PM
Replies: 6
Views: 2,208
Posted By PatrickGTR
Re: MySQL Prepared Statements

SQLite Improved yes, it's the core.

Added account example script.

https://github.com/PatrickGTR/MySQL-Prepared-Statements/blob/master/example/account.pwn
Forum: Includes 06/06/2019, 08:58 PM
Replies: 6
Views: 2,208
Posted By PatrickGTR
MySQL Prepared Statements

Introduction
Hi, I'll keep it short and simple.
This emulates prepared statement when using the MySQL plugin.
Thank you for reading this really long introduction.

Download: Click me...
Forum: Scripting Help 27/10/2017, 12:26 AM
Replies: 4
Views: 548
Posted By PatrickGTR
Re: [SQLite] Deleted rows count

You could execute 2 statements in 1 query by using semicolon ' ; ' to separate them.


new
DBResult:res;

res = db_query(dbHandle, "DELETE FROM table_name where nick = 'Patrick'; SELECT...
Forum: Scripting Help 26/10/2017, 11:59 PM
Replies: 4
Views: 548
Posted By PatrickGTR
Re: [SQLite] Deleted rows count

You could use SELECT changes() to return the recent changes in your database

For example this is your database structure.

-> table_name
- row 1 ->
- row 2 ->
- row 3 ->
- row 4 ->
- row 5...
Forum: Includes 24/10/2017, 02:33 AM
Replies: 13
Views: 7,242
Posted By PatrickGTR
Creating a robbable actor!

Introduction
Inspired by GTA V store robbery. actor_robbery.inc imitates it! You basically aim at the actor and the actor will play 3 animation sequence, the actor will either give you the money or...
Forum: Tutorials 01/01/2016, 06:21 PM
Replies: 32
[Tutorial] Modular Programming
Views: 19,091
Posted By PatrickGTR
Re: Modular Programming

I've tried your code and everything seems to be working fine... I am not sure where you made your mistake but maybe taking a look at my code and you'll realize your own mistake.

ac_health.pwn
...
Forum: Tutorials 01/01/2016, 05:54 PM
Replies: 32
[Tutorial] Modular Programming
Views: 19,091
Posted By PatrickGTR
Re: Modular Programming

Is the folder inside gamemodes? If yes include them this way #include "folder/pwnfile.pwn". Also make sure you put the anti-cheat first before other modules just to make sure these hooked function...
Forum: Tutorials 30/12/2015, 02:47 PM
Replies: 32
[Tutorial] Modular Programming
Views: 19,091
Posted By PatrickGTR
Re: Modular Programming

As I said your modules should be in order and its your choice, your the coder and you choose the layout that's more comfortable to you.

For example



- declarations
- macros
- functions
Forum: Tutorials 30/12/2015, 01:15 PM
Replies: 32
[Tutorial] Modular Programming
Views: 19,091
Posted By PatrickGTR
Re: Modular Programming

Updated, explained how the modules binds together and how the hooking works in-order depending on module order.
Forum: Tutorials 29/12/2015, 08:23 PM
Replies: 32
[Tutorial] Modular Programming
Views: 19,091
Posted By PatrickGTR
Modular Programming

What is modular programming?
Modular programming is a process of breaking down a code depending on its category to make the code reusable for future projects (avoid re-inventing the wheel) as well...
Forum: Gamemode Scripts 24/12/2015, 10:05 PM
Replies: 14
Views: 11,369
Posted By PatrickGTR
Re: San Fierro Cops and Robbers (Getting started) (LARGE IMAGES)

Some screenshots I forgot to upload when I released the gamemode.

Logging in
http://i.imgur.com/GYJofSH.jpg

Registering
http://i.imgur.com/ssWkENG.jpg

Civilian Class Selection...
Forum: Gamemode Scripts 22/12/2015, 05:46 PM
Replies: 14
Views: 11,369
Posted By PatrickGTR
San Fierro Cops and Robbers (Getting started)

Information

I've been working in this gamemode for a month but I got bored and ran out of ideas so therefore I decided to release it as a 'getting started' script, this script is really good to...
Showing results 1 to 19 of 19

 

All times are GMT. The time now is 07:48 AM.


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