Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 7,501
» Latest member: ae888vnio
» Forum threads: 2,413
» Forum posts: 12,360
Full Statistics
|
Online Users |
There are currently 594 online users. » 1 Member(s) | 591 Guest(s) Bing, Google, ae888vnio
|
Latest Threads |
San Fierro Cops And Robbe...
Forum: Advertisements
Last Post: Dr0pp
Yesterday, 08:33 PM
» Replies: 0
» Views: 40
|
Adding new vehicles and s...
Forum: Programming
Last Post: __.A.__
2025-09-12, 07:47 PM
» Replies: 0
» Views: 67
|
Zona América del Sur Free...
Forum: Advertisements
Last Post: kevinberriosflores
2025-09-12, 02:16 PM
» Replies: 1
» Views: 94
|
Busco copia de gamemode S...
Forum: Spanish/Espa?ol
Last Post: briancristaldo2021
2025-09-11, 11:14 AM
» Replies: 0
» Views: 80
|
[Tutorial] Registrando o ...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-09-09, 08:36 PM
» Replies: 0
» Views: 222
|
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-09-08, 10:09 PM
» Replies: 1
» Views: 309
|
Problem with plugins load...
Forum: Support
Last Post: MrKacu13
2025-09-08, 07:15 PM
» Replies: 9
» Views: 392
|
Compilation error
Forum: Pawn Scripting
Last Post: MrKacu13
2025-09-07, 07:18 AM
» Replies: 6
» Views: 372
|
Need help, problem when i...
Forum: Programming
Last Post: nonickowned
2025-09-06, 06:21 PM
» Replies: 0
» Views: 160
|
Transfer server from SAMP...
Forum: Support
Last Post: MrKacu13
2025-09-06, 04:03 PM
» Replies: 1
» Views: 257
|
|
|
how to make a casino system? |
Posted by: Boxi - 2021-04-25, 07:12 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hello to all forum friends, I have a question, do you know how I can make the casino games that brings the default gta in the story mode? the card game, the swallow coins, roulette, or similar things, is it possible? greetings!
|
|
|
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;
}
|
|
|
|