Jump to content

Question

6 answers to this question

Recommended Posts

  • 0
Posted

Salut, descărca cea mai noua versiune de aici https://github.com/karimcambridge/samp-foreach

In server.cfg nu uita sa adaugi la plugins si foreach.so (linux) sau .dll (windows)
  
/* dupa a_samp baga acest includ */
#include <a_samp>
#include <foreach>

public OnGameModeInit() {
    foreach (new p : Player) {
        /* Cod pentru fiecare jucător */
    }

    foreach (new v : Vehicle) {
        /* Cod pentru fiecare vehicul */
    }
  	return 1;
}


  

 

  • 0
Posted
4 minutes ago, khain.dev said:

Salut, descărca cea mai noua versiune de aici https://github.com/karimcambridge/samp-foreach

In server.cfg nu uita sa adaugi la plugins si foreach.so (linux) sau .dll (windows)
  
/* dupa a_samp baga acest includ */
#include <a_samp>
#include <foreach>

public OnGameModeInit() {
    foreach (new p : Player) {
        /* Cod pentru fiecare jucător */
    }

    foreach (new v : Vehicle) {
        /* Cod pentru fiecare vehicul */
    }
  	return 1;
}


  

 

actually, e cea mai veche versiune de foreach, cel din YSI este updatat, si nu e plugin, e doar un include

  • 0
Posted
1 hour ago, Sancky said:

actually, e cea mai veche versiune de foreach, cel din YSI este updatat, si nu e plugin, e doar un include

Acest includ are și plugin

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.