Jump to content
  • 0

Eroare : Cannot read from file mSelection.inc


BoBBiTa

Question

Problema intalnita (descriere): Salut sa-mp.ro, am  incercat sa fac o comanda /v cu includul mSelection.
Ero(area / rile) / warning-(ul / urile): fatal error 100: cannot read from file: "mSelection"

Liniile de cod / sursa / script-ul:

 

#include <a_samp>
#include <mSelection>

new vehiclelist = mS_INVALID_LISTID;
public OnFilterScriptInit()
{
    vehiclelist = LoadModelSelectionMenu("vehicles.txt");
    return 1;
}


CMD:v(playerid, params[])
{
        ShowModelSelectionMenu(playerid, vehiclelist, "Selecteaza masina");
        return 1;
}

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
    if(listid == vehiclelist)
    {
        if(response)
        {
            SendClientMessage(playerid, 0xFF0000FF, "Masina Spawnata!");
            new Float:up[3], carid;
            GetPlayerPos(playerid, up[0], up[1], up[2]);
            CreateVehicle(modelid, up[0]+2, up[1]+2, up[2], 0, -1, -1, 0);
        }
        else SendClientMessage(playerid, 0xFF0000FF, "Selectia de masini a fost inchisa");
        return 1;
    }
    return 1;
}

 

Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Am cautat si am aflat ca eroare este si la mai multe includeuri(sscanf sau zcmd), eu intalnesc eroarea asta decat la mSelection... vreo idee?

// Desenul meu animat 
// Alte episoade aici: 
https://www.youtube.com/channel/UCF2kY1CzhHI_PCyV5LprQ1w/videos

 

 

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Gata am rezolvat! Multumesc oricum, Rezolvarea este foarte simpla :

1. Intrati in pawno, scrieti #include mSelection, da-ti compile si va pune sa salvati ve-ti salva unde vreti si se va compila automat

2.Dupa ce se compileaza veti vedea ca nu va mai da eroarea

3.Iesi din fereastra de compile si dati file - open si deschideti scriptul vostru.

4. Il compilati si merge!

Am observat ca faza aceasta merge si la alte includeuri ( gen :sscanf2, etc.. )

// Desenul meu animat 
// Alte episoade aici: 
https://www.youtube.com/channel/UCF2kY1CzhHI_PCyV5LprQ1w/videos

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.