SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 43
Search took 0.00 seconds.
Search: Posts Made By: CXdur
Forum: Scripting Help 01/11/2017, 11:27 PM
Replies: 6
Views: 1,422
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: 324
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: 280
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: 805
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: 75
Views: 32,561
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: 75
Views: 32,561
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: 414
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: 414
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: 414
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: 75
Views: 32,561
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: 75
Views: 32,561
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}",
"-;+",
"-(+",
Forum: Scripting Help 10/04/2017, 09:44 AM
Replies: 5
Views: 433
Posted By CXdur
Re: Millions insert in mysql

I would really consider only storing them for a specific amount of time and perhaps deleting the rows in OnGameModeInit if they're older than this date.
Forum: Scripting Help 04/04/2017, 08:20 PM
Replies: 3
Views: 450
Posted By CXdur
Re: Issues with three dimensional array

I think I fixed it guys, if anyone is curious as to how:


enum E_CUSTOM_GROUP_RANK
{
gRank_number,
gRank_name[32]
}
Forum: Scripting Help 04/04/2017, 08:02 PM
Replies: 3
Views: 450
Posted By CXdur
Re: Issues with three dimensional array

PM has been sent, thanks.
Forum: Scripting Help 04/04/2017, 07:56 PM
Replies: 5
Views: 431
Posted By CXdur
Re: /buylevel is not respon

Are you only allowed to use the command at level 8? As far as I can see, this code does nothing for players that are over level 8? ( if(PlayerInfo[playerid][pExp] == 8) { )

If not, that if...
Forum: Scripting Help 04/04/2017, 06:50 PM
Replies: 3
Views: 450
Posted By CXdur
Question Issues with three dimensional array

Hey,

I am having some very strange issues with a 3D array that I have. The ranks are loaded from a database, to start out and test with I have the following ranks:
...
Forum: Scripting Help 20/03/2017, 09:02 AM
Replies: 16
Views: 1,213
Posted By CXdur
Re: OnPlayerSpawn callback message duplicated or even start flood message

I would recommend perhaps using a timer rather than onplayerupdate. Onplayerupdate is called a lot. Also a variable for whether a player is spawned or not could also be added to the if statement, but...
Forum: Scripting Help 02/03/2017, 06:36 AM
Replies: 8
Views: 440
Posted By CXdur
Re: How can I check if the player is registered?

You can check the amount of rows. If the cache contains a row the account is registered, if it doesn't the account is not.
Forum: Scripting Help 02/03/2017, 06:30 AM
Replies: 13
Views: 854
Posted By CXdur
Re: How to get enum id from sql id

Have you tried debugging it a bit more? Perhaps printing the loop, comparing the two numbers?
Forum: Scripting Help 02/03/2017, 06:03 AM
Replies: 4
Views: 291
Posted By CXdur
Re: some questions

1. What do you mean the perfect coordinate of the vehicle? Where it spawns or where it currently is? If you'd like to know where it spawns I'm not sure if you're able to do this without hooking...
Forum: Scripting Help 02/03/2017, 05:58 AM
Replies: 9
Views: 541
Posted By CXdur
Re: dm spawn

You need to use the OnPlayerSpawn callback, players that spawn or respawn will be passed through this function.

You could then use the SetSpawnInfo function or various others to achieve your goal...
Forum: Scripting Help 22/02/2017, 06:14 PM
Replies: 3
Views: 275
Posted By CXdur
Re: help with dialogs

I don't really understand what you are trying to do. Can you please provide more code and clarify?
Forum: Scripting Help 22/02/2017, 06:12 PM
Replies: 10
Views: 700
Posted By CXdur
Re: Double Account

Alright, so when logging them in and a user Id is fetched can you not simply loop through online players and make sure no player is online with that user id?
Forum: Scripting Help 22/02/2017, 06:00 PM
Replies: 10
Views: 700
Posted By CXdur
Re: Double Account

This seems poorly coded to me if this is at all able to happen. I have no idea how you've made it so it's hard to give perfect advice, but the person above stated some very good points. What you're...
Forum: Server Support 21/02/2017, 06:16 AM
Replies: 1
Views: 1,822
Posted By CXdur
Exploits to crash players / server

Hey,

A server I am currently scripting for has some issues with cheaters using exploits to crash players, sometimes even nearly everyone and sometimes the attacks can last for hours. This has been...
Showing results 1 to 25 of 43

 

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


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