MSelection Don't Respond If Use Sscanf made By Y-Less
#1

Now I am Using MSelection for my Gamemode.If I am Use SSCANF Plugin.MSelection Menu Don't Respond.How To Fix This? Thank You
Reply
#2

Can you show us your script ? and are you sure you got the leasted version of sscanf and Mselection
Reply
#3

Quote:

#include <a_samp>
#include <mSelection>

new planelist = mS_INVALID_LISTID;
new skinlist = mS_INVALID_LISTID;
public OnFilterScriptInit()
{
planelist = LoadModelSelectionMenu("planes.txt");
skinlist = LoadModelSelectionMenu("skins.txt");
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/plane", true) == 0)
{
ShowModelSelectionMenu(playerid, planelist, "->Planes<-");
return 1;
}
if(strcmp(cmdtext, "/changeskin", true) == 0)
{
ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
return 1;
}
return 0;
}

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == planelist)
{
if(response)
{
SendClientMessage(playerid, 0xFF0000FF, "Plane Spawned");
new Floatos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
CreateVehicle(modelid, pos[0] + 2.5, pos[1], pos[2] + 2.5, 0.0, random(12, random(12, -1);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled plane selection");
return 1;
}
if(listid == skinlist)
{
if(response)
{
SendClientMessage(playerid, 0xFF0000FF, "Skin Changed");
SetPlayerSkin(playerid, modelid);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
return 1;
}
return 1;
}

Every MSelection example Code I've tried.But Still Don't Respond.I Use Latest Sscanf and MSelection.
Reply
#4

You create .txt file in your scripted files folder named with planes , skin etcc ?
Reply
#5

already
Reply
#6

Sorry i didn't notice that , if you use this as gamemode so change :
pawn Код:
public OnFilterScriptInit()
{
planelist = LoadModelSelectionMenu("planes.txt");
skinlist = LoadModelSelectionMenu("skins.txt");
return 1;
}
Код:
planelist = LoadModelSelectionMenu("planes.txt");
skinlist = LoadModelSelectionMenu("skins.txt");
Control + x for this and add to
Код:
public OnGameModeInit()
Reply
#7

Umm Sorry I Don't Use It As Gamemode.Please Read Carefully "If I Use SSCANF Plugin MSelection Menu Don't Respond"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)