MSelection Don't Respond If Use Sscanf made By Y-Less - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MSelection Don't Respond If Use Sscanf made By Y-Less (
/showthread.php?tid=468032)
MSelection Don't Respond If Use Sscanf made By Y-Less -
viveka27 - 06.10.2013
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
Re: MSelection Don't Respond If Use Sscanf made By Y-Less -
SilentSoul - 06.10.2013
Can you show us your script ? and are you sure you got the leasted version of sscanf and Mselection
Re: MSelection Don't Respond If Use Sscanf made By Y-Less -
viveka27 - 06.10.2013
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 Float os[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.
Re: MSelection Don't Respond If Use Sscanf made By Y-Less -
SilentSoul - 06.10.2013
You create .txt file in your scripted files folder named with planes , skin etcc ?
Re: MSelection Don't Respond If Use Sscanf made By Y-Less -
viveka27 - 06.10.2013
already
Re: MSelection Don't Respond If Use Sscanf made By Y-Less -
SilentSoul - 06.10.2013
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()
Re: MSelection Don't Respond If Use Sscanf made By Y-Less -
viveka27 - 06.10.2013
Umm Sorry I Don't Use It As Gamemode.Please Read Carefully
"If I Use SSCANF Plugin MSelection Menu Don't Respond"