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: AndreT
Forum: General 11/06/2016, 07:34 PM
Replies: 19
Views: 1,996
Posted By AndreT
Re: New to scripting

Hey,

It is necessary to be noted that the language is called Pawn, not pawno. Pawno is just an editor designed for the language.

Pawn, while not often used for scripting, has numerous...
Forum: Scripting Help 30/05/2016, 07:39 PM
Replies: 9
Views: 1,652
Posted By AndreT
Re: strtolower?

Try to implement the logic yourself. You have to create a function that takes all the characters in string A and applies the function tolower (https://wiki.sa-mp.com/wiki/Tolower) on them, then puts...
Forum: Scripting Help 15/05/2016, 12:48 PM
Replies: 4
Views: 740
Posted By AndreT
Re: Progressbar refuses to destroy

...
ShowPlayerProgressBar(playerid, UnfreezeBar[playerid]);
UnfreezeBar[playerid] = CreatePlayerProgressBar(playerid,258.00, 367.00, 124.50, 14.50, -16776961, 100.0);
...

Looking at the...
Forum: Scripting Help 15/05/2016, 12:19 PM
Replies: 4
Views: 403
Posted By AndreT
Re: I need your help!

Lookinag at your 'veicolo_callsign_status' array, it gives me a question:
is it only being used for values 0/1 to designate whether a 3D text label has been created?

If so, why not use the...
Forum: Scripting Help 15/05/2016, 11:37 AM
Replies: 10
Views: 1,015
Posted By AndreT
Re: vehicle slap

Furthermore, my players were exceptionally pleased when I binded this under a key (NUM4 or NUM6). For this, use the OnPlayerKeyStateChange (http://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange) event.
...
Forum: Scripting Help 14/05/2016, 05:37 PM
Replies: 10
Views: 1,015
Posted By AndreT
Re: vehicle slap

From a long long time ago I remember that if you want to "slap" the vehicle higher into the air and have it continue moving in the direction that it was moving before, you should save the vehicle's...
Forum: Scripting Help 14/05/2016, 05:34 PM
Replies: 2
Views: 397
Posted By AndreT
Re: lock distance from driver's door

Hi!

Looking at the documentation here: https://wiki.sa-mp.com/wiki/Vehicle_information_types

GetVehicleModelInfo with the info type VEHICLE_MODEL_INFO_FRONTSEAT returns X Y Z offsets from the...
Forum: Scripting Help 06/05/2015, 07:31 PM
Replies: 22
Views: 3,154
Posted By AndreT
Re: Efficient Vehicle Looping

I did not mention an advantage over looping with function usage. I mentioned a clear memory consumption advantage vs the regular PAWN array -- 32 times less memory usage (technically, I assume the...
Forum: Scripting Help 06/05/2015, 11:51 AM
Replies: 22
Views: 3,154
Posted By AndreT
Re: Efficient Vehicle Looping

Hey! Interesting question.


This is indeed a very good way, but can be improved to use maximally ONE function call to determine whether a vehicle is valid and streamed in for the player. Since if...
Forum: Everything and Nothing 14/04/2015, 12:10 PM
Replies: 378
Views: 45,707
Posted By AndreT
Re: ******? Why? We still need you.

From a developer's point of view, I can understand how one can become "addicted" to and grow fond of certain projects.
For me, these have been SA-MP-related projects (my gamemode and its components...
Forum: News and Updates 17/01/2015, 01:03 PM
Replies: 815
Views: 268,082
Posted By AndreT
Re: SA-MP 0.3.7 in development (RC soon)

Thanks for the exciting news!

:)
Forum: Scripting Help 26/11/2014, 01:48 PM
Replies: 1
Views: 366
Posted By AndreT
Re: How to solve this eror + rep for help

INVALID_PLAYER_ID is defined as 65535.

In some circumstances, OnPlayerDeath is called with the killerid parameter set to INVALID_PLAYER_ID (aka 65535).

In your code, there is an instance of...
Forum: Scripting Help 17/10/2014, 03:31 PM
Replies: 9
Views: 1,020
Posted By AndreT
Re: Player Time online Per Day

I understand that you use the result of gettime()? The function returns the UNIX timestamp, so I assume you are storing the correct information.

I have, in my user panel, created a very similar...
Forum: Scripting Help 16/10/2014, 02:30 PM
Replies: 9
Views: 1,020
Posted By AndreT
Re: Player Time online Per Day

Hey.

I use a table called `sessions` for storing player session data. It logs all the relevant information: their unique ID `id`, time of connection `jointime`, time of disconnection `leavetime`...
Forum: Scripting Help 19/08/2014, 02:54 PM
Replies: 5
Views: 1,278
Posted By AndreT
Re: Complexity

The "box" which was mentioned is more specifically the AMX virtual space that the PAWN script operations are limited within. (Please correct me should the info be incorrect)

If by complexity you...
Forum: Server Support 16/08/2014, 10:38 AM
Replies: 5
Views: 1,386
Posted By AndreT
Re: Memory leakage - what can cause this?

Is StrickenKid's plugin really the one you are using or is that just a link mixup? Because I don't think there have been any updates for a few years now. Also I remember some issues with that plugin...
Forum: Scripting Help 05/08/2014, 05:06 PM
Replies: 6
Views: 574
Posted By AndreT
Re: [Help] Problem with WP_Hash

By "ask" I mean have the script do it! I did not mean "ask" as in literally have a human ask for a password (that's a big no-no on any list).
Forum: Scripting Help 05/08/2014, 01:41 PM
Replies: 6
Views: 574
Posted By AndreT
Re: [Help] Problem with WP_Hash

Don't store passwords in plaintext.

If you wish to move from one hashing method to another, what you have to do is ask your players to provide their old password, then run WP_Hash() on it, compare...
Forum: Scripting Help 29/06/2014, 11:35 AM
Replies: 2
Views: 546
Posted By AndreT
Re: runtime error 5

You should compile your gamemode (HRP.amx) with debug flags. If I recall correctly, change your pawn.cfg in the folder where the compiler is located to contain "-d3 -o0" and see what sort of...
Forum: Plugin Development 10/06/2014, 10:04 PM
Replies: 6,158
Views: 2,332,956
Posted By AndreT
Re: [REL] MySQL Plugin (Now on github!)

According to https://github.com/pBlueG/SA-MP-MySQL/blob/master/src/CMySQLHandle.cpp line 47, that will do the trick, yeah!

But otherwise, it does output a warning in CMySQLHandle::Create, but uses...
Forum: Plugin Development 10/06/2014, 09:09 PM
Replies: 6,158
Views: 2,332,956
Posted By AndreT
Re: [REL] MySQL Plugin (Now on github!)

Yes, as there is one instance of the plugin running on the server and I doubt that this plugin stores connections based on their AMX (aka which scripts creates the connection).
You can either...
Forum: Server Support 25/05/2014, 08:11 AM
Replies: 2
Views: 2,349
Posted By AndreT
Re: Bad client crashes (address 0x007F3825, scm op 0x470)

Thanks. I also got some info from dugi and while I was not able to find any code where vehicle component objects (1000-1193) are created using Create(Player)Object, I think I greatly reduced the...
Forum: Server Support 22/05/2014, 09:08 AM
Replies: 2
Views: 2,349
Posted By AndreT
Bad client crashes (address 0x007F3825, scm op 0x470)

Hi.

For the last couple months, the players in my server have been experiencing crashes


SA-MP 0.3z
Exception At Address: 0x007F3825
Base: 0x03110000

Registers:
Forum: Plugin Development 03/05/2014, 06:23 AM
Replies: 352
Views: 110,480
Posted By AndreT
Re: Gamemode SDK for C/C++ (GDK)

To see which dependencies are missing, run
ldd libSampSharp.so (or whatever dependencies you're checking)

If all is good, all dependencies are found. Otherwise, you'll see some errors/blanks. If...
Forum: Scripting Help 19/03/2014, 01:41 PM
Replies: 6
Views: 1,283
Posted By AndreT
Re: Pseudocode

Same as you, I think about how one or another process should work in code. I may not think of all the functions and operations - that's the pseudocode part - but I never write up any.
The first...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 01:21 PM.


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