05.03.2017, 21:32
Hello guys, i'm currently facing to a problem, I did a car spawner system using the mSelection include, but when I load my game mode i get the following error: "-mSelection- WARNING: Failed to load list: "Ids/vehicles.txt" "
Note: I also tried to move the vehicles.txt file directly under the scriptfiles folder (and i updated the script too for matching)
Here's my code:
Thank you in advance for any help you will give.
PS: I followed the tutorial on the official mSelection's thread.
Sorry if my english was bad.
Note: I also tried to move the vehicles.txt file directly under the scriptfiles folder (and i updated the script too for matching)
Here's my code:
Код:
new vehicleList = mS_INVALID_LISTID;
public OnGameModeInit()
{
vehicleList = LoadModelSelectionMenu("Ids/vehicles.txt");//When I tried to put that file directly under the scriptfiles i also changed the path here.
return 1;
}
CMD:creervehicule(playerid, params[])//Command used to show the Menu.
{
if(pStats[playerid][adminLevel] >= STAFF_ADMIN)
{
ShowModelSelectionMenu(playerid, vehicleList, "|Vйhicules|");
}
else
{
SCM(playerid,COLOR_ERROR,MESSAGE_NO_ACCESS);
}
return 1;
}
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == vehicleList)
{
if(response)
{
SCM(playerid,COLOR_SERVER,"[Serveur] Votre vйhicule administratif vient d'apparaоtre.");
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
CreateVehicle(modelid, x + 2.5, y, z + 2.5, 0.0, random(128), random(128), -1);
}
return 1;
}
return 1;
}
PS: I followed the tutorial on the official mSelection's thread.
Sorry if my english was bad.



