Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,269
» Latest member: RaviShankar19
» Forum threads: 2,381
» Forum posts: 12,297

Full Statistics

Online Users
There are currently 288 online users.
» 1 Member(s) | 284 Guest(s)
Bing, Google, Yandex, HolmesTR

Latest Threads
Open Mp Server resartint ...
Forum: Support
Last Post: passedthedemon
2025-07-13, 10:16 PM
» Replies: 0
» Views: 17
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: 2PAC_
2025-07-12, 09:17 PM
» Replies: 7
» Views: 8,458
Iron Horizon Roleplay[v1....
Forum: Advertisements
Last Post: MikeNGRP
2025-07-11, 11:44 PM
» Replies: 0
» Views: 42
[MAP PACK] 5 NEW LS BUILD...
Forum: Videos and Screenshots
Last Post: Apollo4430
2025-07-11, 12:20 AM
» Replies: 1
» Views: 3,353
Open.mp / SAMP Query
Forum: Releases
Last Post: laex
2025-07-09, 04:07 AM
» Replies: 2
» Views: 137
some text appearing in my...
Forum: Support
Last Post: Sizy
2025-07-08, 07:33 AM
» Replies: 0
» Views: 41
Offensive-Core: TDM
Forum: Gamemodes
Last Post: NikitaFoxze
2025-07-08, 12:13 AM
» Replies: 3
» Views: 3,702
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
2025-07-06, 10:28 AM
» Replies: 0
» Views: 57
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
2025-07-05, 11:35 PM
» Replies: 0
» Views: 35
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
2025-07-05, 11:05 PM
» Replies: 2
» Views: 122

 
  Array index out of bounds
Posted by: Z3fRaN - 2021-04-25, 02:09 AM - Forum: Pawn Scripting - Replies (2)

trying to create server sided vehicles

Code:
enum vInfo

{

vehicletype,

Float:vx,

Float:vy,

Float:vz,

Float:rotation,

vcolor1,

vcolor2,

respawn_delay,

addsiren=0

}



new VehicleInfo[MAX_VEHICLES][vInfo];



stock CreateVehicleEx(modelid, Float:x, Float:y, Float:z, Float:z_rotation, color1, color2, vrespawn_delay, vaddsiren=0)

{

new vehicle;

vehicle = CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, addsiren);

VehicleInfo[vehicle][vehicletype] = modelid;

VehicleInfo[vehicle][vx] = x; -?Array index out of bounds at variable "vehicleinfo"

VehicleInfo[vehicle][vy] = y; -?Array index out of bounds at variable "vehicleinfo"

VehicleInfo[vehicle][vz] = z;?-?Array index out of bounds at variable "vehicleinfo"

VehicleInfo[vehicle][rotation] = z_rotation; -?Array index out of bounds at variable "vehicleinfo"

VehicleInfo[vehicle][vcolor1] = color1;?-?Array index out of bounds at variable "vehicleinfo"

VehicleInfo[vehicle][vcolor2] = color2;??-?Array index out of bounds at variable "vehicleinfo"

VehicleInfo[vehicle][respawn_delay] = vrespawn_delay; -?Array index out of bounds at variable "vehicleinfo"

VehicleInfo[vehicle][addsiren] = vaddsiren;?-?Array index out of bounds at variable "vehicleinfo"

return 1;

}


  4 digit code with leads
Posted by: McZulian - 2021-04-25, 12:12 AM - Forum: Pawn Scripting - Replies (1)

What i'm trying to say is this:
I'm doing a 4 digit code password and you can try to guess it.
For example: The password is 1563
And i try to guess it and try: 6593
The server tells me what numbers i got right: X5X3

I don't know how to do this comparison that can output which numbers are right


  Help! How to make an auto aiming feature towards other characters with fuction stock?
Posted by: PutuSuhartawan - 2021-04-24, 05:39 PM - Forum: Pawn Scripting - Replies (3)

How to make an auto aiming feature towards other characters with the help of the stock function that you know??



I see that many people find it difficult to make their characters automatically point to the faces of the characters near them around the draw station because they don't understand the function or stock that makes the leader's angle of this character look at each other?


  Anti Silent Aimbot (Johnny Project Fix)
Posted by: Hata - 2021-04-24, 03:14 PM - Forum: Filterscripts - Replies (2)

Hello all of you, i'm new to the burger shot platform and wanted to share a cheat i fixed with you.

Code:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if (hittype == BULLET_HIT_TYPE_PLAYER)
    {
        new
            Float:fOriginX, Float:fOriginY, Float:fOriginZ,
            Float:fHitPosX, Float:fHitPosY, Float:fHitPosZ;

        GetPlayerLastShotVectors(playerid, fOriginX, fOriginY, fOriginZ, fHitPosX, fHitPosY, fHitPosZ);
        new Float:BulletDistanceForHit = GetPlayerDistanceFromPoint(hitid, fHitPosX, fHitPosY, fHitPosZ);
        if (BulletDistanceForHit == 0 && (weaponid > 21 && weaponid != 35 && weaponid != 42 && weaponid < 47))
        {
            return 0; //It prevents the bullet from reaching the target player.
        }
    }
}


  Deleted.
Posted by: Hata - 2021-04-24, 11:14 AM - Forum: Pawn Scripting - No Replies

Deleted.


  Message separator issue
Posted by: unix - 2021-04-24, 02:05 AM - Forum: Pawn Scripting - No Replies

Hello,



I am having an issue with the code below - it only works once for one player which has the ascending player id - for other it will just bug out and send out 2 dots ".." completely not doing the work as previously for the asc. player id.



Code:
stock SendMessageToPlayer(playerid, color, text[], len = 124)

{

new

? ? text2[ 256 ],

maxstring = 384;



if(strlen(text) > len)

{

? ? strmid(text2, text, len, maxstring);

? ? strdel(text, len, maxstring);

? ? strins(text, " ..", len, maxstring);

? ? strins(text2, ".. ", 0, maxstring);

? ? SendClientMessage(playerid, color, text);

? ? SendClientMessage(playerid, color, text2);

? ? return 1;

}

else return SendClientMessage(playerid, color, text);

}


  Help! How to Change MAX objects based on drawdistance?
Posted by: PutuSuhartawan - 2021-04-23, 08:54 PM - Forum: Pawn Scripting - Replies (1)

I use the streamer plugin but all I just found?is MAX items.


  mysql_query to tquery inline
Posted by: Zow - 2021-04-23, 05:07 PM - Forum: Pawn Scripting - Replies (1)

this one work



Code:
GetVehicleCount(playerid)

{

? ? new threadCheck[128], count;



? ? mysql_format(ourConnection, threadCheck, sizeof(threadCheck), "SELECT COUNT(*) FROM vehicles WHERE VehicleOwnerDBID = %d", PlayerInfo[playerid][pDBID]);

? ? new Cache: result = mysql_query(ourConnection, threadCheck);



? ? cache_get_value_index_int(0, 0, count);



? ? cache_delete(result);

? ? return count;

}



this is first time to using inline but its not work as I expect



Code:
GetVehicleCountEx(playerid) {

? ? new count;

? ? inline _CountVehicle()

? ? {

? ? ? ? new rows;

? ? ? ? if(cache_get_row_count(rows))

? ? ? ? {

? ? ? ? ? ? cache_get_value_index_int(0, 0, count);

? ? ? ? }

? ? }

? ? MySQL_TQueryInline(ourConnection, using inline _CountVehicle, "SELECT COUNT(*) FROM vehicles WHERE VehicleOwnerDBID = %d", PlayerInfo[playerid][pDBID]);

? ? return count;

}


  HELP! How to Hide The Radar Or HUD time money with function / stock?
Posted by: PutuSuhartawan - 2021-04-23, 12:34 PM - Forum: Pawn Scripting - Replies (3)

sorry, I am very confused and uncomfortable when making certain scenes, sometimes I just need to turn off the radar display. or need to get rid of HUDs such as money or hours or luggage logos.


  PAWN compiler on VSCode
Posted by: Behemoth - 2021-04-22, 07:48 PM - Forum: Pawn Scripting - Replies (2)

Hi,



I've recently moved over to VSCode for programming and was wondering if anyone has ever used it for PAWN. If so, could you share how you've got the compiler working on it?



Tried playing around but I've had no luck.



Thanks