SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Kwarde
Forum: Scripting Help 17/03/2020, 06:39 PM
Replies: 3
Views: 93
Posted By Kwarde
Re: MySQL Escaped string problem

Create this array:
new const array[] = "PlayerX";

And print format them this way:

printf("%s / %s / %s", array[0], array[1], array[4]);

And see what happens ;)
Forum: Server Support 29/02/2020, 02:35 AM
Replies: 4
Views: 268
Posted By Kwarde
Re: how can I create a .sql file for mysql database

Assuming you have phpmyadmin, use the import button. Alternatively you can use bash:
$ mysql -u user -d database -p < /path/to/sqlfile.sql
Replace the words user and database with ofc the user and ...
Forum: Scripting Help 28/02/2020, 05:00 PM
Replies: 10
Views: 260
Posted By Kwarde
Re: exception 0XC0000005 (ACCESS_VIOLATION)

Glad to hear you found out what was going on ;-)
Forum: Everything and Nothing 28/02/2020, 02:22 PM
Replies: 24
Views: 2,028
Posted By Kwarde
Re: Favourite Genre of Music

Led Zeppelin, Led Zeppelin, and Led Zeppelin.
Jokes aside, Rock N Roll, Blues, Hardrock, Metalllll. And classical music.
Basically anything with awesome guitarwork in it
...
Forum: Scripting Help 28/02/2020, 02:14 PM
Replies: 10
Views: 260
Posted By Kwarde
Re: exception 0XC0000005 (ACCESS_VIOLATION)

Then sorry, I have no clue at all what might be up.
After some searching I saw more people having this issue (and funny enough, me too, but under OnPlayerDisconnect [SSCANF related, the GM itself...
Forum: Scripting Help 27/02/2020, 05:05 PM
Replies: 10
Views: 260
Posted By Kwarde
Re: exception 0XC0000005 (ACCESS_VIOLATION)

Try using Zeex's compiler (I thought default pawncc supported it too. Assuming you are using default compiler?)
It doesn't matter what editor you are using, it is pawncc that gives that output.
Forum: Scripting Help 27/02/2020, 01:15 PM
Replies: 10
Views: 260
Posted By Kwarde
Re: exception 0XC0000005 (ACCESS_VIOLATION)

EDIT: Any MySQL logs?

Compile with -d3 (or -d2 if you want to keep optimisation (-O1) enabled). That should give more information on what's going on and where precisely. Atleast doesn't seem you...
Forum: Scripting Help 27/02/2020, 01:03 PM
Replies: 5
Views: 106
Posted By Kwarde
Re: Checkpoint is not on the exact coordinate.

You have tried fixing it for 5 hours but never looked at the wiki page? Also, what did you try those 5 hours? Changing coordinates? That's literally doing the same thing (that doesn't work) over and...
Forum: Filterscripts 26/02/2020, 02:35 PM
Replies: 5
[FilterScript] Fix Vehicle [Rcon Only]
Views: 594
Posted By Kwarde
Re: Fix Vehicle [Rcon Only]

Nobody doesn't care? So we all care?

Aside from this a few other notes:

1- There is no check if a player is logged into RCON [IsPlayerAdmin()], so everyone can use the command.
2- Using...
Forum: Scripting Help 26/02/2020, 02:11 PM
Replies: 6
Views: 119
Posted By Kwarde
Re: error while compiling

Even though this post I am posting is notusefull for this topic. Amen!
Forum: Scripting Help 25/02/2020, 01:28 PM
Replies: 6
Views: 222
Posted By Kwarde
Re: Somebody crashing server

Compile with -d3 (or -d2 if you want to keep optimisation (-O1) enabled). That should give more information on what's going on and where precisely. Atleast doesn't seem you have that option enabled...
Forum: Gamemode Scripts 24/02/2020, 03:45 PM
Replies: 138
Views: 22,755
Posted By Kwarde
Re: San Fierro Cops And Robbers

[17:53:37] Loading plugin: sscanf
[17:53:37]

[17:53:37] ===============================

[17:53:37] sscanf plugin loaded.

[17:53:37] Version: 2.8.3

Is your include version 2.8.2 or 2.8.3?
Forum: Scripting Help 21/02/2020, 06:12 PM
Replies: 6
Views: 131
Posted By Kwarde
Re: array index out of bounds

A simple for() loop would do.
https://forum.sa-mp.com/showthread.php?p=4122459
You might want to read about scripting basics.
Forum: Scripting Help 21/02/2020, 02:43 PM
Replies: 9
Views: 188
Posted By Kwarde
Re: SA-MP Scripting help me pls...

You're missing semicolons here and there (;), and
new SQL - -1, qQuery[256]: it should be 'new SQL = -1'

I suggest you to start learning scripting basics first before trying to create things....
Forum: Scripting Help 21/02/2020, 02:39 PM
Replies: 6
Views: 131
Posted By Kwarde
Re: array index out of bounds

Well, first of all, you're just formatting the string using mysql_format(). You're not actually sending the query to the database. Use mysql_tquery().
In the callback you're providing in...
Forum: Scripting Help 21/02/2020, 02:18 PM
Replies: 6
Views: 131
Posted By Kwarde
Re: array index out of bounds

It literally means what it says: Index out of bounds.
fInfo's size is 11 (MAX_FACTIONS). You are trying to access index 11 (in the sscanf() part and in the mysql_format() part).
If you declare an...
Forum: Scripting Help 21/02/2020, 02:13 PM
Replies: 1
Views: 90
Posted By Kwarde
Re: Custom object not loading("?" pickup instead)

0.3.8 doesn't support 0.3.7-DL. You should place these files in your gta_sa_dir/SAMP/custom.img file
Forum: Scripting Help 21/02/2020, 02:05 PM
Replies: 1
Views: 58
Posted By Kwarde
Re: Mysql ORM Thread

Yes. The queries are threaded though.
Forum: Scripting Help 21/02/2020, 01:53 PM
Replies: 1
Views: 111
Posted By Kwarde
Re: Samp server crashes with Signal 6

Did you compile the script with -d3? If not, try that to see if crashdetect can provide more info.
-d2 would do too (-d3 is the same as -d2 (full debug checking) but it also implies -O0; no...
Forum: Scripting Help 21/02/2020, 01:48 PM
Replies: 3
Views: 162
Posted By Kwarde
Re: EOS Question

I do have to alter a few things on above reply.

Yes.

No. You are telling the machine that it is the end of the string. It won't read any data after EOS (also known as the null terminator,...
Forum: Gamemode Scripts 19/02/2020, 12:05 PM
Replies: 138
Views: 22,755
Posted By Kwarde
Re: San Fierro Cops And Robbers

No harm in redownloading plugins and includes (check that post I talked about) and recompiling
Forum: Gamemode Scripts 19/02/2020, 08:53 AM
Replies: 138
Views: 22,755
Posted By Kwarde
Re: San Fierro Cops And Robbers

Getting the same crashlog on a working server, so I can only assume it is something else, and I wouldn't know what that is.
Perhaps try on a diff system, eventually a virtual machine.

You can...
Forum: Gamemode Scripts 18/02/2020, 01:22 PM
Replies: 138
Views: 22,755
Posted By Kwarde
Re: San Fierro Cops And Robbers

Well I have no idea what's up then.
You can ignore the FCNPC crashlog, it usually does that when quitting the gamemode. I will compare it with my fcnpc crashlogs just to be sure.
Forum: Scripting Help 18/02/2020, 08:31 AM
Replies: 2
Views: 95
Posted By Kwarde
Re: how to fix that please help me i'm beginner

Usually this happens when you're using wrong plugins. However that usually is so on Linux systems. I hope you didn't rename .so extensions to .dll extensions? (Assuming you are on windows).
Also...
Forum: Scripting Help 18/02/2020, 08:27 AM
Replies: 7
Views: 140
Posted By Kwarde
Re: ReturnIP issue

You may. Knowledge is well received :)
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 02:26 AM.


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