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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,532
» Latest member: aaravingram
» Forum threads: 2,236
» Forum posts: 12,038

Full Statistics

Online Users
There are currently 582 online users.
» 0 Member(s) | 579 Guest(s)
Yandex, Bing, Google

Latest Threads
A nod to biggest projects
Forum: Questions and Suggestions
Last Post: Himmenting
2 hours ago
» Replies: 0
» Views: 2
Open Roleplay - (Christma...
Forum: Advertisements
Last Post: thebust3rs
2024-11-28, 02:27 PM
» Replies: 0
» Views: 37
White Screen
Forum: Support
Last Post: trinoctial
2024-11-28, 08:25 AM
» Replies: 1
» Views: 71
Open MP shutting down aft...
Forum: Support
Last Post: trinoctial
2024-11-28, 08:22 AM
» Replies: 1
» Views: 203
SAMP Custom weapon script
Forum: Filterscripts
Last Post: vodanghoang1999
2024-11-28, 07:13 AM
» Replies: 0
» Views: 27
Command does not work in-...
Forum: Pawn Scripting
Last Post: PANZEHIR_
2024-11-23, 06:36 PM
» Replies: 0
» Views: 62
I get error 021 using y_h...
Forum: Pawn Scripting
Last Post: daniscript18
2024-11-18, 11:34 PM
» Replies: 0
» Views: 71
Il reste des français sur...
Forum: French/Fran?ais
Last Post: tysanio
2024-11-18, 05:39 AM
» Replies: 2
» Views: 495
Object creation issues
Forum: Programming
Last Post: K1271
2024-11-15, 11:51 PM
» Replies: 0
» Views: 69
Is the SAMP Hosting the s...
Forum: General Discussions
Last Post: OperaGX
2024-11-14, 09:33 PM
» Replies: 0
» Views: 93

 
  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 does one make a top5 ranking?
Posted by: Z3fRaN - 2021-04-26, 11:04 PM - Forum: Pawn Scripting - Replies (2)

I don't have the idea of how to make a top 5 ranking, like top 5 killers of the server, what do I need to do in order to script something like that?


  Help! How to make a Marine Submarine System Moveable in the Sea with w a s d control?
Posted by: PutuSuhartawan - 2021-04-25, 08:49 PM - Forum: Pawn Scripting - Replies (2)

I first created a ship and made the dynamic object move. But I have a question, how can ships or objects be controlled again using the keyboard? like driving a vehicle in general?


  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!


  Frames
Posted by: Nightmare - 2021-04-25, 05:30 PM - Forum: Programming - Replies (1)

what function i get the players's?FPS?


  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.