Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 200 online users. » 0 Member(s) | 198 Guest(s) Google, Bing
|
Latest Threads |
Discord server - Ban Appe...
Forum: Chat
Last Post: joshcoconutard
10 hours ago
» Replies: 0
» Views: 12
|
I know Kalcor left the bu...
Forum: Questions and Suggestions
Last Post: NoxxeR
Yesterday, 02:22 PM
» Replies: 4
» Views: 113
|
Desolation Roleplay
Forum: Gamemodes
Last Post: Nikore
Yesterday, 07:04 AM
» Replies: 2
» Views: 4,533
|
Battlefields - TDM (Team ...
Forum: Gamemodes
Last Post: Nikore
Yesterday, 04:14 AM
» Replies: 3
» Views: 2,781
|
Will there be a higher pl...
Forum: General Discussions
Last Post: Armeat2005
2025-04-21, 08:40 AM
» Replies: 0
» Views: 30
|
DOF2.1 (DOF2 Updated)
Forum: Libraries
Last Post: GracieStith
2025-04-21, 04:51 AM
» Replies: 1
» Views: 871
|
Kontak Layanan CIMB Niaga...
Forum: Support
Last Post: bosquee9053
2025-04-20, 03:44 PM
» Replies: 0
» Views: 29
|
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: 44
|
Best practices for conver...
Forum: Tech
Last Post: Mido
2025-04-19, 09:53 PM
» Replies: 1
» Views: 104
|
|
|
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
|
|
|
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.
}
}
}
|
|
|
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);
}
|
|
|
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;
}
|
|
|
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
|
|
|
|