SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 186
Search took 0.01 seconds.
Search: Posts Made By: Chenko
Forum: Scripting Help 06/07/2020, 03:49 PM
Replies: 4
Views: 137
Posted By Chenko
Re: Amx backtrace on a simple line

This line is retrieving the size of missionBombs[MAX_PLAYERS]
for(new i = 0; i < sizeof(missionBombs); i++)

I believe if you change it to this, it should work:

for(new i = 0; i <...
Forum: Gamemode Scripts 22/08/2019, 11:34 PM
Replies: 28
Views: 12,809
Posted By Chenko
Re: Moving Target Gaming Roleplay Script

The script works 100% fine for me with that MySQL setting removed. If those errors are preventing the gamemode from running then some issue with your SQL config exists that will require you to...
Forum: Gamemode Scripts 22/08/2019, 08:13 PM
Replies: 28
Views: 12,809
Posted By Chenko
Re: Moving Target Gaming Roleplay Script

From the original post:

If you are having issues with MySQL make sure SQL Mode does not include STRICT_TRANS_TABLES or STRICT_ALL_TABLES. This will cause the gamemode to not work as most columns...
Forum: Gamemode Scripts 20/08/2019, 05:03 PM
Replies: 28
Views: 12,809
Posted By Chenko
Re: Moving Target Gaming Roleplay Script

The necessary filterscripts are mtg_mapping and mtg_intmenu. You need to compile both as the .amx isnt included.



The scriptfiles on github was missing MySQLConfig.ini. I have added it now....
Forum: Gamemode Scripts 19/08/2019, 06:44 PM
Replies: 28
Views: 12,809
Posted By Chenko
Re: Moving Target Gaming Roleplay Script

Try to use the plugins included on the github page as the script is untested with updated versions. Also make sure it is connecting to the SQL server and the like. Not sure exactly what the issue is...
Forum: Gamemode Scripts 22/07/2019, 01:08 AM
Replies: 28
Views: 12,809
Posted By Chenko
Re: Moving Target Gaming Roleplay Script

Considering I was the developer for MTG for 4 years, I know this is the actual MTG script lol. This can be setup in LV if you wish as it is entirely dynamic.
Forum: Gamemode Scripts 18/07/2019, 03:59 AM
Replies: 28
Views: 12,809
Posted By Chenko
Re: Moving Target Gaming Roleplay Script

Added some features I could remember to the main post so people can have an idea of what this script has to offer. I've also updated the github repo to have more necessary files in scriptfiles.
Forum: Gamemode Scripts 17/07/2019, 03:36 PM
Replies: 28
Views: 12,809
Posted By Chenko
Re: Moving Target Gaming Roleplay Script

Server should create a file called MySQLConfig.ini on startup.
Forum: Gamemode Scripts 16/07/2019, 10:35 PM
Replies: 28
Views: 12,809
Posted By Chenko
Re: Moving Target Gaming Roleplay Script

mtg_rp_tables.sql has been added to the repo. This contains create table code required for the MySQL database.
Forum: Gamemode Scripts 16/07/2019, 09:45 PM
Replies: 28
Views: 12,809
Posted By Chenko
Re: Moving Target Gaming Roleplay Script

The server used a hosted MySQL database. As it has been so long and no backups exist, I don't fully remember all the tables and their structure so that is something you'll need to go through the code...
Forum: Gamemode Scripts 13/07/2019, 11:56 PM
Replies: 28
Views: 12,809
Posted By Chenko
Moving Target Gaming Roleplay Script

Hello everyone, I present to you the Moving Target Gaming Roleplay gamemode. This is a fully fledged roleplay server developed over the course of 5 or so years starting with Vortex Roleplay 1 as a...
Forum: Scripting Help 10/04/2015, 11:18 PM
Replies: 4
Views: 832
Posted By Chenko
Forum: Scripting Help 10/04/2015, 09:45 PM
Replies: 4
Views: 832
Posted By Chenko
Re: Some YSI related AMX errors and issues

I was compiling with -d3 but the version of crashdetect running on the server was outdated so I updated it and was able to get more information from it.

All the YSI debug information is the same...
Forum: Scripting Help 10/04/2015, 08:50 PM
Replies: 4
Views: 832
Posted By Chenko
Re: Some YSI related AMX errors and issues

The script is compiled in debug mode and I know what run time error 4 is. The issue is the error comes from within the YSI includes and not in the gamemode.
Forum: Scripting Help 10/04/2015, 07:51 PM
Replies: 4
Views: 832
Posted By Chenko
Some YSI related AMX errors and issues

So recently I went back to a gamemode I had not worked on in a while and I lost the original includes I used to compile. So I went around and got back whatever I needed to compile it properly....
Forum: Scripting Help 15/10/2014, 02:57 AM
Replies: 3
Views: 1,055
Posted By Chenko
Re: While there's a next row (in MySQL R33)

No, you need to use a loop as there is no function to go to the next row. A while loop works pretty well for this. Try something like this:


public OnHouseLoad()
{
new rows, fields, idx;
...
Forum: Scripting Help 14/10/2014, 08:24 PM
Replies: 4
Views: 521
Posted By Chenko
Re: Sombody help me in this code please!

You shouldn't be using return inside a loop because it will end the loop at the first player that isn't a drug dealer so if there is players after him that are drug dealers it will never get to them....
Forum: Scripting Help 14/10/2014, 08:20 PM
Replies: 11
Views: 738
Posted By Chenko
Re: Cods fail help

You are checking if the vehicle ID is 425 or 520 when you should be checking if the model ID is 425 or 520.

This should work for you:


if (PRESSED(KEY_YES))
{
new vid =...
Forum: Scripting Help 13/10/2014, 06:13 PM
Replies: 11
Views: 738
Posted By Chenko
Re: Cods fail help

Well then you are checking for the key being pressed incorrectly.

Use this:


// PRESSED(keys)
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Forum: Scripting Help 13/10/2014, 05:20 PM
Replies: 11
Views: 738
Posted By Chenko
Re: Cods fail help

Why are you checking for KEY_YES? That isn't called when a player enters a vehicle. Also, you should check out this page on the SA:MP wiki:...
Forum: Scripting Help 13/10/2014, 03:35 PM
Replies: 3
Views: 316
Posted By Chenko
Re: error 033 need help on this

fMeter is not a boolean so you can't compare it to true and false. Instead of "fMeter[playerid] > false" do "fMeter[playerid] > 0"
Forum: Scripting Help 12/10/2014, 09:12 PM
Replies: 9
Views: 693
Posted By Chenko
Re: Run Server Bugged +rep

If the operating system of your host is Linux then you need to download the .so files for the plugins you wish to use and edit your server config to include ".so" in the plugin names.

So your...
Forum: Scripting Help 12/10/2014, 09:10 PM
Replies: 7
Views: 532
Posted By Chenko
Re: Help [repair]

Yes, just hit tab on the line with the "return SendClientMessage(playerid, COLOR_GREY, "You can't repair yourself.")"

Glad I could help you!
Forum: Scripting Help 12/10/2014, 08:53 PM
Replies: 1
Views: 415
Posted By Chenko
Re: SQLite no save

Are you making sure to load the position when they log in and set them to the saved position?
Forum: Scripting Help 12/10/2014, 08:51 PM
Replies: 7
Views: 532
Posted By Chenko
Re: Help [repair]

Just add this somewhere in the command after you extract the params.


if(userID == playerid)
return SendClientMessage(playerid, COLOR_GREY, "You can't repair yourself.");
Showing results 1 to 25 of 186

 

All times are GMT. The time now is 03:02 PM.


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