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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,017
» Latest member: shiftdapentas
» Forum threads: 2,347
» Forum posts: 12,232

Full Statistics

Online Users
There are currently 269 online users.
» 1 Member(s) | 266 Guest(s)
Bing, Google, PawnFox

Latest Threads
Sponsors and Donations
Forum: Questions and Suggestions
Last Post: NoxxeR
7 hours ago
» Replies: 0
» Views: 20
I know Kalcor left the bu...
Forum: Questions and Suggestions
Last Post: NoxxeR
7 hours ago
» Replies: 2
» Views: 59
Best practices for conver...
Forum: Tech
Last Post: Mido
Yesterday, 09:53 PM
» Replies: 1
» Views: 68
A simple suggestion as a ...
Forum: Questions and Suggestions
Last Post: Mido
Yesterday, 09:47 PM
» Replies: 1
» Views: 33
Steps to unlock Apple ID ...
Forum: Tech
Last Post: fubolink
2025-04-17, 03:50 PM
» Replies: 0
» Views: 34
What got you into SA-MP a...
Forum: Chat
Last Post: alecnia
2025-04-17, 01:17 AM
» Replies: 1
» Views: 136
I would like to know abou...
Forum: General Discussions
Last Post: Wriney
2025-04-15, 07:14 AM
» Replies: 0
» Views: 60
Mini Games
Forum: Advertisements
Last Post: Voldy
2025-04-15, 03:59 AM
» Replies: 9
» Views: 1,859
help
Forum: Programming
Last Post: J0nathan550
2025-04-14, 06:10 PM
» Replies: 1
» Views: 170
help with hotdog vendor s...
Forum: Programming
Last Post: J0nathan550
2025-04-14, 06:09 PM
» Replies: 4
» Views: 315

 
Photo YSI\y_timers problem [ solved ]
Posted by: BotLevel.Bobu - 2023-12-11, 07:55 PM - Forum: Pawn Scripting - No Replies

How to stop a timer. The " stop x " doesn't work. It is a BUG or I don't use it right ?



Code:
#include <a_samp>

#include <YSI_Coding\y_timers>



main()

{

    print("Start Timer Test2");

    defer Test2();

}





timer Test1[10000]()

{

    print(" Why still working ? Why calling this timer 2x ?");

    return 1;

}



timer Test2[5000]()

{

    print(" Timer Test2 5 sec ");

    defer Test3();

    defer Test1();

    return 1;

}



timer Test3[2000]()

{

    print(" Timer Test3 6 sec ");

    stop Test1();  // It seems that simply calls the function instantly and not stoping anything ... That's why calling the timer 2x

    return 1;

}



https://tinypic.host/image/LqSj4



And now I'm using qanwo with the latest release from YSI and still exact the same problem.







Code:
#include <open.mp>

#define YSI_NO_HEAP_MALLOC

#include <YSI_Coding\y_timers>



timer Test1[10000]()

{

    print(" Why still working ? Why calling this timer 2x ?");

    return 1;

}



timer Test3[2000]()

{

    print(" Timer Test3 6 sec ");

    stop Timer:Test1();  // It seems that simply calls the function instantly and not stoping anything ... That's why calling the timer 2x

    return 1;

}



timer Test2[5000]()

{

    print(" Timer Test2 5 sec ");

    defer Test3();

    defer Test1();

    return 1;

}



main()

{

    print("Start Timer Test2");

    defer Test2();

}



https://tinypic.host/image/LzMcb





Now I really think that I'm using it wrong because not even the normal way doesn't work.



Code:
#include <a_samp>



main()

{

    print(" Start Timer_Test2 5 sec");

    SetTimer("Timer_Test2", 5000, false);

}



forward Timer_Test1();

forward Timer_Test2();

forward Timer_Test3();



public Timer_Test1()

{

    print(" Why still working ? Why calling this timer 2x ?");

    return 1;

}



public Timer_Test2()

{

    print(" Timer Test2 5 sec ");

   

    SetTimer("Timer_Test3", 6000, false);

    SetTimer("Timer_Test1", 10000, false);



    return 1;

}



public Timer_Test3()

{

    print(" Timer Test3 6 sec ");

    KillTimer(Timer_Test1());

    return 1;

}





I found the right way. 





Code:
#include <a_samp>



new test1;

new test2;

new test3;



main()

{

    print(" Start Timer_Test2 5 sec");

    test2 = SetTimer("Timer_Test2", 5000, false);

}



forward Timer_Test1();

forward Timer_Test2();

forward Timer_Test3();



public Timer_Test1()

{

    print(" Why still working ? Why calling this timer 2x ?");

    return 1;

}



public Timer_Test2()

{

    print(" Timer Test2 5 sec ");



    test3 = SetTimer("Timer_Test3", 6000, false);

    test1 = SetTimer("Timer_Test1", 10000, false);



    return 1;

}



public Timer_Test3()

{

    print(" Timer Test3 6 sec ");

    KillTimer(test1);

    return 1;

}




Like I thought... I wasn't use it right ! Everything work just perfect ! 
This is how it works:


Code:
#include <a_samp>
#define YSI_NO_HEAP_MALLOC
#include <YSI_Coding\y_timers>

new Timer:test;

timer Test1[10000]()
{
    print(" Why still working ? Why calling this timer 2x ?");
    return 1;

}

timer Test3[2000]()
{
    print(" Timer Test3 6 sec ");
    stop Timer:test;  // It seems that simply calls the function instantly and not stoping anything ... That's why calling the timer 2x
    return 1;

}

timer Test2[5000]()
{
    print(" Timer Test2 5 sec ");
    defer Timer:Test3();
   
    test = defer Timer:Test1();
    return 1;

}

main()
{
    print("Start Timer Test2 xx");
    defer Timer:Test2();
}


  Include that facilitates sqlite manipulation
Posted by: Jhames - 2023-12-10, 05:30 AM - Forum: Support - No Replies

Hello everything is fine. 

I'm starting a new project and would like to use sqlite, but I would like to know if there is any include that makes it easier to manipulate and use sqlite. I found an include called "easydb.inc" but the project is old and has no active documentation. 

In my last projects I used DOF2, it is an .ini file manipulation include and it works very well, but my next project requires some specific queries that only sqlite and mysql are supported.


  looking for website for audiosteam
Posted by: mnlw2888 - 2023-12-09, 07:29 AM - Forum: Support - Replies (5)

6kiwi down ... i use it before. :(
now look for some website like him.. can find somting ? just for my localhost ..


  samp black screen win 11
Posted by: morohassaan1 - 2023-12-08, 01:31 PM - Forum: Support - No Replies

Please Help me
Recently I installed windows 11 and downloaded gta sa and it works well, but when I start any server on samp it gives me black screen after loading and then nothing.


  I have a question
Posted by: melissawimmer219 - 2023-12-08, 04:03 AM - Forum: Pawn Scripting - Replies (1)

Dear community,

i think the question is clear. I want to set my 'spawn-ojects' to a virtual world so that you just see the objects when you select your skin.


Thanks!


  Support Arabic ?
Posted by: Faiz - 2023-12-07, 02:06 PM - Forum: Questions and Suggestions - No Replies

can samp support Arabic ?


  [MAP] City Hall, Hospital, Mechanic
Posted by: pmemorex2016 - 2023-12-06, 02:31 AM - Forum: Videos and Screenshots - No Replies

Hello, I want to present my maps Municipality, Hotel, Goldsmith, Mechanic

I make maps and graphic design for money contact me by message

https://prnt.sc/19fjudf
https://prnt.sc/19fjvw4
https://prnt.sc/19fk0h9
https://prnt.sc/19fjs10
https://prnt.sc/19fk1or
https://prnt.sc/19fjxh0
https://prnt.sc/w40mq5


  City Hall, Jawerly, Hotel
Posted by: pmemorex2016 - 2023-12-05, 05:03 PM - Forum: Maps - Replies (2)

Hello, I want to present my maps Municipality, Hotel, Goldsmith, Mechanic

I make maps and graphic design for money contact me by message

https://prnt.sc/19fjudf
https://prnt.sc/19fjvw4
https://prnt.sc/19fk0h9
https://prnt.sc/19fjs10
https://prnt.sc/19fk1or
https://prnt.sc/19fjxh0
https://prnt.sc/w40mq5


Star SAMP Mods Collection🔥
Posted by: xDrPawnx - 2023-12-04, 01:47 PM - Forum: Pawn Scripting - No Replies

GTA SAMP Mods Collection (2012, by DrPawn)

Introduction

Welcome to my personal collection of mods for GTA San Andreas Multiplayer (SAMP) from the year 2012. (0.3d I think)
These mods represent not just my early ventures into the world of programming but also hold a special place in my heart as they were some of the first codes I ever wrote during my first three years as a programmer.

While GTA SAMP may not be as widely played today, the significance of these mods goes beyond their functional purpose in the game. They are a testament to my growth and passion as a developer.
I've decided to publish them on GitHub as a form of digital preservation and to share a piece of my programming journey with others.

Link to Github: https://github.com/IdanSHR/SAMP-Mods-Col...aster/mods

Mod List and Descriptions

  1. Deathmatch Zones System: This mod introduces dynamic zones and weapons for deathmatch gameplay, enhancing the PVP experience in SAMP.

  2. Anti SAWN-Off 202: A balance-focused mod that limits the usage of the overpowered SAWN-Off shotgun bug, aiming to create a more equitable gaming environment with an On/Off switch.

  3. Getting Damaged Text: Adds an immersive feature where players receive on-screen text notifications when taking damage, providing a more responsive gameplay experience.

  4. Multi Commands Line: This utility mod allows for executing multiple commands in a single line, greatly enhancing the efficiency of gameplay and server administration.

  5. Special Vehicles: Introduces unique vehicles not originally found in GTA SAMP, adding a fresh and exciting element to the game's exploration and transportation.

Why Publish Now?

These mods are more than just code; they are a part of my personal history in programming. By sharing them, I hope to not only preserve these early works but also possibly inspire new and veteran programmers in the gaming community. Whether for nostalgic revisits, educational purposes, or just for fun, I believe these mods still hold value.

Acknowledgements
A big thank you to the GTA SAMP community for the support and inspiration during my early days of coding. This project wouldn't have been possible without the vibrant and creative environment fostered by this community.


Wink how can i do that ? o.O
Posted by: mnlw2888 - 2023-12-03, 06:34 AM - Forum: Pawn Scripting - Replies (2)

its new for me how can do that pls help 

https://imgur.com/a/hLaEpOo  << image