Search Results
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 similarities (...
37
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://sampwiki.blast.hk/wiki/Tolower) on them, then put...
45
Code: ... ShowPlayerProgressBar(playerid, UnfreezeBar[playerid]); UnfreezeBar[playerid] = CreatePlayerProgressBar(playerid,258.00, 367.00, 124.50, 14.50, -16776961, 100.0); ... Looking at the code....
31
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 'veicolo_c...
30
Furthermore, my players were exceptionally pleased when I binded this under a key (NUM4 or NUM6). For this, use the OnPlayerKeyStateChange (https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange) event...
37
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 ve...
37
Hi! Looking at the documentation here: https://sampwiki.blast.hk/wiki/Vehicle_information_types GetVehicleModelInfo with the info type VEHICLE_MODEL_INFO_FRONTSEAT returns X Y Z offsets from the cen...
30
Quote: Originally Posted by Mauzen A bitset actually would have little to no advantages compared to the common loop pawn Код: // Common attemptfor (new i = 0; i < MAX_VEHICLES; i++...
53
Hey! Interesting question. Quote: Originally Posted by Emmet_ In my experience, this is the best way: pawn Код: for (new i = 0, j = GetVehiclePoolSize(); i <= j; i ++) {    if (...
53
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 wh...
54
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 accessin...
29
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 funct...
36
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` (and...
36
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 mean...
38
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 o...
96
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).
53
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 th...
53
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 informati...
32
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 numbe...
26