SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 57
Search took 0.00 seconds.
Search: Posts Made By: CXdur
Forum: Scripting Help 19/02/2020, 11:57 AM
Replies: 6
Views: 315
Posted By CXdur
Re: MySQL optimization

I see that someone already posted regarding normalization, so I'll do query optimization:

Analyzing queries (see how they run, if as intended)...
Forum: Scripting Help 04/01/2020, 12:09 AM
Replies: 11
Views: 454
Posted By CXdur
Re: Help with highest scores on server

Pottus's approach is a lot better than my suggestions when it comes to keeping the score list updated by the way! I was thinking you wanted offline players in the highscore as well when I suggested...
Forum: Scripting Help 03/01/2020, 03:05 AM
Replies: 11
Views: 454
Posted By CXdur
Re: Help with highest scores on server

The best way as Pottus said would be to save it in a database and simply select it this way when you need it. Or if you'd like to avoid querying the database often, query it every now and then and...
Forum: Scripting Help 03/01/2020, 02:49 AM
Replies: 2
Views: 144
Posted By CXdur
Re: SOME WAY TO SEND A POST REQUEST

But why?




format(query, sizeof(query), "user=%s&email=%s&code=%s&hash=%s&token=thetoken", urlencode(PlayerName(playerid)), urlencode(email), urlencode(code), urlencode(verification_hash));
...
Forum: Scripting Help 19/12/2019, 12:11 AM
Replies: 4
Views: 289
Posted By CXdur
Re: bcrypt / php problem

A password hash generated with bcrypt will not be the same every time. Also, the password_verify method takes just two arguments. The password you want to test, and the current password hash.


//...
Forum: Scripting Help 15/12/2019, 06:55 PM
Replies: 4
Views: 172
Posted By CXdur
Re: Reload vehicle sql

How come you access the vehicle info array with vInfo[vehicleId]][], but you also have vId? I think you could stick with just the vehicle ID for its inde, and get rid of the vInfo[vid][vID]?

new...
Forum: Scripting Help 15/12/2019, 06:29 PM
Replies: 4
Views: 172
Posted By CXdur
Re: Reload vehicle sql

So if I understand correctly, there's only an issue when an admin spawns a vehicle with some sort of command? Players have no issues with vehicles themselves because they cannot spawn it? If I...
Forum: Scripting Help 05/12/2019, 04:56 PM
Replies: 16
Views: 465
Posted By CXdur
Re: Crash on editing objects

new cp = PlayerData[i][pCheckpoint]; // used to index checkpoints for propertydata
if(!IsPlayerInRangeOfPoint(i, 2.0, PropertyData[cp][propertyExterior][0], PropertyData[cp][propertyExterior][1], ...
Forum: Scripting Help 04/12/2019, 09:22 PM
Replies: 16
Views: 465
Posted By CXdur
Re: Crash on editing objects

It seems the index (checkpoint ID used) you tried to access the propertydata array with was 561893. Any idea why it would give such a value? You should add a check to prevent it from accessing...
Forum: Scripting Help 04/12/2019, 12:05 PM
Replies: 16
Views: 465
Posted By CXdur
Re: Crash on editing objects

if(!IsPlayerInRangeOfPoint(i, 2.0, PropertyData[cp][propertyExterior][0], PropertyData[cp][propertyExterior][1], PropertyData[cp][propertyExterior][2])){




Could this be the one that is out of...
Forum: Scripting Help 04/12/2019, 11:57 AM
Replies: 3
Views: 186
Posted By CXdur
Re: Formatting in dialog.

As Calisthenics pointed out, you could check out DIALOG_STYLE_TABLIST (https://wiki.sa-mp.com/wiki/Dialog_Styles).

I would also suggest you rewrite your code to improve its readability and make it...
Forum: Scripting Help 04/12/2019, 11:33 AM
Replies: 2
Views: 121
Posted By CXdur
Re: not deleting car when leave server

Have you tried printing the pDb[playerid][masina] value before destroying the vehicle? To make sure that it is called and that the vehicle ID is correct?
Forum: Scripting Help 04/12/2019, 11:03 AM
Replies: 3
Views: 195
Posted By CXdur
Re: >>> HELP ME PLEASE <<<

Maybe the visible limit is exceeded (the amount of objects one player can stream at once)?

You can can debug it with Streamer natives...
Forum: Scripting Help 04/12/2019, 10:58 AM
Replies: 4
Views: 323
Posted By CXdur
Re: how to set roles discord connector

It would be a lot quicker for you if you checked the repository (https://github.com/maddinat0r/samp-discord-connector)yourself.

It does seem to be updated though.
Forum: Scripting Help 01/11/2017, 11:27 PM
Replies: 6
Views: 1,614
Posted By CXdur
Re: error 017: undefined symbol "mysql_pquery"

Check this out:

http://forum.sa-mp.com/showthread.php?t=616103
Forum: Scripting Help 01/11/2017, 01:06 PM
Replies: 4
Views: 384
Posted By CXdur
Re: JobSkin

You should probably distinguish arrays from databases. Arrays are a way to represent structured data in memory. Databases are a tool to store data on disk until you need to retrieve it.

If you'd...
Forum: Scripting Help 01/11/2017, 01:01 PM
Replies: 6
Views: 329
Posted By CXdur
Re: Help me guys

Yes, you need to replace the coordinates that you want to move from. You need to find your current delivery positions' XYZ so you know which to replace, and then replace these XYZ coordinates with...
Forum: Scripting Help 01/11/2017, 12:57 PM
Replies: 7
Views: 1,001
Posted By CXdur
Re: Variable Check

In what context do you need to check this? It could make it easier for us to help you.
Forum: Tutorials 01/11/2017, 12:51 PM
Replies: 78
Views: 46,853
Posted By CXdur
Re: PAWN Syntax and Compiler for Visual Studio Code

I created a quick java program to generate snippets for me so that I could easily add some snippets for my gamemode's functions. Here is a pastebin link if anyone is interested:
...
Forum: Tutorials 31/10/2017, 09:53 AM
Replies: 78
Views: 46,853
Posted By CXdur
Re: PAWN Syntax and Compiler for Visual Studio Code

You can use the command palette to open such a list, but for me I barely ever use the insert snippet function. Intellisense really makes this function obsolete, at least to me as I remember all the...
Forum: Scripting Help 19/09/2017, 05:27 PM
Replies: 2
Views: 546
Posted By CXdur
Re: Building using windows powershell

For anyone who has the same issue trying to build using VScode, please note the path here:

> Executing task: c:\Users\sondr\git\lsrcr/pawno/pawncc.exe gamemodes/lsrcr.pwn -; -( -v2...
Forum: Scripting Help 19/09/2017, 11:53 AM
Replies: 2
Views: 546
Posted By CXdur
Re: Building using windows powershell

I would like to add that if I use cmd or the type "process" when building in VScode it struggles to read from my modular files. The directory is fine because it compiles perfectly in atom with the...
Forum: Scripting Help 19/09/2017, 11:40 AM
Replies: 2
Views: 546
Posted By CXdur
Building using windows powershell

Hey,

I struggle to build using windows powershell. Does anyone here have any idea?


> Executing task: c:\Users\sondr\git\lsrcr/pawno/pawncc.exe gamemodes/lsrcr.pwn -;+ =)+ -v2...
Forum: Tutorials 12/09/2017, 08:27 PM
Replies: 78
Views: 46,853
Posted By CXdur
Re: PAWN Syntax and Compiler for Visual Studio Code

The previous errors are now solved, but instead I'm getting another weird error.

Does anyone have any idea why it fails to read from these files? If I compile in atom it can read from them without...
Forum: Tutorials 07/09/2017, 08:49 PM
Replies: 78
Views: 46,853
Posted By CXdur
Re: PAWN Syntax and Compiler for Visual Studio Code

Does anyone know what is wrong here?


{
"version": "2.0.0",
"type": "shell",
"args":[
"${relativeFile}",
"-;+",
"-(+",
Showing results 1 to 25 of 57

 

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


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