Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 582 online users. » 0 Member(s) | 579 Guest(s) Yandex, Bing, Google
|
|
|
Error: No est?s cerca de un basurero/container |
Posted by: Chessy - 2021-04-27, 06:31 AM - Forum: Programaci?n
- Replies (4)
|
|
(nos? porqu? se espacia as? ed horrible autom?ticamente el post).
Hola, resulta que estoy desarrollando un sistema de basureros, los cuales se puede ver el contenido con un comando llamado /verbasura.
Hace un ratito estaba funcionando bien, no s? si es porque es las 3 de la ma?ana y tengo brain lagging o el error no es l?gico.
Cuesti?n, ocupo este comando /verbasura al lado del container y me dice, no est?s cerca de un container
Me pregunt? si el rango de operaci?n del comando era muy corto, le agrand? m?s, fui a la db, ocup? las coordenadas exactas que se guardaron al ser creado (porque son din?micos) y ni as?.
Este es el comando:
Code: CMD:verbasura(playerid, params[])
{
new success;
for (new e = 1; e < MAX_CONTAINERS; e)
{
if(IsPlayerInRangeOfPoint(playerid,5,containerInfo[e][cX], containerInfo[e][cY], containerInfo[e][cZ]))
{
success;
if(GetPVarInt(playerid,"ESPOSADO"))
{
ErrorM(playerid, "Est?s esposado, no puedes hacer esto en este momento.");
return 1;
}
MostrarBasura(playerid, e);
return 1;
}
}
if(!success) ErrorM(playerid, "No est?s cerca de un basurero/container.");
SetPVarInt(playerid, "caflood", GetTickCount());
return 1;
}
Me dir?s, ah, debe ser porque
Code: containerInfo[e][cX], containerInfo[e][cY], containerInfo[e][cZ]
Son valores vac?os, tienen un 0. Y no, porque se ocupan para crear el objeto y el label flotante arriba del contenedor...
?Puede ser porque la funci?n mostrarbasura genere error (trat? de descartarlo con la variable success)? (No hay errores en mysql.log [Est? en modo ALL] / error.log / warnings.log / server_log.txt)
|
|
|
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.
}
}
}
|
|
|
|