Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 208 online users. » 0 Member(s) | 206 Guest(s) Bing, Google
|
Latest Threads |
Discord server - Ban Appe...
Forum: Chat
Last Post: joshcoconutard
2 hours ago
» Replies: 0
» Views: 2
|
I know Kalcor left the bu...
Forum: Questions and Suggestions
Last Post: NoxxeR
6 hours ago
» Replies: 4
» Views: 95
|
Desolation Roleplay
Forum: Gamemodes
Last Post: Nikore
Today, 07:04 AM
» Replies: 2
» Views: 4,529
|
Battlefields - TDM (Team ...
Forum: Gamemodes
Last Post: Nikore
Today, 04:14 AM
» Replies: 3
» Views: 2,779
|
Will there be a higher pl...
Forum: General Discussions
Last Post: Armeat2005
Yesterday, 08:40 AM
» Replies: 0
» Views: 29
|
DOF2.1 (DOF2 Updated)
Forum: Libraries
Last Post: GracieStith
Yesterday, 04:51 AM
» Replies: 1
» Views: 866
|
Kontak Layanan CIMB Niaga...
Forum: Support
Last Post: bosquee9053
2025-04-20, 03:44 PM
» Replies: 0
» Views: 25
|
CS Bank DBS Customer Cent...
Forum: Chat
Last Post: bosquee9053
2025-04-20, 03:37 PM
» Replies: 0
» Views: 34
|
Sponsors and Donations
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-20, 05:48 AM
» Replies: 0
» Views: 43
|
Best practices for conver...
Forum: Tech
Last Post: Mido
2025-04-19, 09:53 PM
» Replies: 1
» Views: 98
|
|
|
[Solved] Why Game mode amx size has increased? |
Posted by: Radical - 2021-05-12, 04:18 PM - Forum: Pawn Scripting
- Replies (12)
|
 |
I made some changes to the Game Mode today, after a few hours I saw that the size of Game Mode amx increased from 4 MB to 19 MB.
Compilation time also increased from 10 seconds to seconds.
I don't remember what I did that caused it
even I optimizing well.
Compiler:
Zeex - https://github.com/pawn-lang/compiler/releases
Game Mode Includes:
Code: #include <a_samp>
#include <a_mysql>
#include? <jit>
#include "../include/nex-ac.inc"
#include <weapon-config>
#define YSI_NO_VERSION_CHECK
#undef MAX_PLAYERS
#define MAX_PLAYERS 200
#include?<streamer>
#include <colandreas>
#include <3DTryg>
#include?<sscanf2>
#include <YSF>
#include <PreviewModelDialog>
#include <progress2>
#include <mSelection>
#include <foreach>
#include <formatex>
Code: Header size:? ? ? ? ? 32596 bytes
Code size:? ? ? ? ? 6266484 bytes
Data size:? ? ? ? 38666848 bytes
Stack/heap size:? ? ? 16384 bytes; estimated max. usage=3072 cells (12288 bytes)
Total requirements:44982312 bytes
[Finished in 67.0s]
Solved:
weapon-config include had caused this.
|
|
|
[SOLVED] How to detect how many players there are in same place around coordinat |
Posted by: PutuSuhartawan - 2021-05-12, 02:11 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
Solution from?Pinch:
Code: stock returnPlayersInRange(playerid, range = 40.0)
{
? ? new
? ? ? ? Floatt:x,
? ? ? ? Float:y,
? ? ? ? sloat:z,
? ? ? ? streamed;
? ? ? ?
? ? GetPlayerPos(playerid, x, y, z);
? ?
? ? foreach(new i : Player) {
? ? ? ? if(!IsPlayerInRangeOfPoint(i, range, x, y, z)) {
? ? ? ? ? ? continue; // Continue the loop (next slot)
? ? ? ? }
? ? ? ?
? ? ? ? streamed = 1; // Increments the variable by 1
? ? }
? ?
? ? return streamed; // Return the variable's value.?
...or you can just not use this cmd as players can hit F5 or whatever it was and see number of streamed players
}
The problem:
Sir, how do you detect how many players are there? For example, we want to check how many people are in SMB but without checking directly to the location but using cmd, for example cmd / check, there will be a message from the system showing how many people there are. SMB
I think it is necessary first, isplayerinrangeofpoint. Then, the for for the playerid check function has the same enum about them at the same time. enum example. pInfo [playerid] [InZoneName]
is this code can make more extend ?
Code: new Float:x, Float:y, Float:z;
? ? ? GetPlayerPos(playerid, x, y, z);
? ? ?
? ? ? foreach(new ii : Player)
? ? ? {
? ? ? ? if(IsPlayerInRangeOfPoint(ii, 40.0, x, y, z))
? ? ? ? {
? ? ? ? ??
? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ?
for(new x;x<MAX_PLAYERS;x)
? ? {
? ? ? ?
? ? ? ? ? }
? ? ? ?
? ? ? ? }
? ? ? }
|
|
|
[SOLVED] compilation results in Pawno with Sublime so different ? |
Posted by: PutuSuhartawan - 2021-05-10, 11:16 PM - Forum: Pawn Scripting
- Replies (8)
|
 |
SOLUTION:
Code: Solved with, Stop, use the free Sublime, switch to Visual Studio Code for a compiler that will match both pawno and sampctl.
Problem:
I found strange symptoms when using the oldest version of the compiler and was asked to edit once with the sublime the results were stuck. In fact, the include from YSI will create a lot of missing files when compiled via sublime. But strangely, if you open it with pawno and compile it with the same obsolete pawncc, it only works in pawno. What makes YSI unsuitable for compiling via Sublime and compiling with the compiler?
|
|
|
Map Dynamic Object Invisible Problem |
Posted by: LinesinRows - 2021-05-10, 06:46 PM - Forum: Support
- Replies (1)
|
 |
Hello,
?When I created dynamic object for map (In filter-script), some objects doesn't seem for player. What's the problem in this case?
? Thanks in advance.
Some code in map;
PHP Code: tmpobjid = CreateDynamicObject(19450, 164.765304, 1937.607055, 530.600891, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00); SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "grey-70-percent", 0x00000000);
Problem img;
https://ibb.co/y04czJT
|
|
|
Free Car Id |
Posted by: Kripteks - 2021-05-10, 10:37 AM - Forum: Support
- No Replies
|
 |
I tried the free tool id for gta sa and was successful. But when I tried it for sa-mp it doesn't work when I want to download a vehicle with a different ID. How can I solve it.
|
|
|
[SOLVED] How can the android client enter the server version 0.3.DL ? |
Posted by: PutuSuhartawan - 2021-05-08, 07:21 PM - Forum: Pawn Scripting
- Replies (3)
|
 |
SOLUTION :
Code: All crack client users from Android must have been banned, in order to realize capitalism that has the best and fastest GPU graphics.
The question arises when an Android user whose client is lagging behind wants to join a very updated server like the 0.3.DL version. In my opinion this really doesn't make sense and will be overwhelmed by the low version of the client. Do you think this can be overcome and you know how?
How can the android client enter the server version 0.3.DL?
|
|
|
Weapon-config |
Posted by: israel_Oliveira - 2021-05-07, 01:19 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
When I shoot a player nothing happens, he doesn?t take damage, what can it be? I already removed the publics Take and Give.
I put a printf in the public and it really is not being called when one player shoots the other.
Can anyone tell me why?
|
|
|
|