Menutest help - 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: Menutest help (
/showthread.php?tid=580861)
Menutest help -
Mouiz - 08.07.2015
This is the menutest filterscript:
Код:
// Test menu functionality filterscipt
#include <a_samp>
#define TEST_MENU_ITEMS 6
new Menu:TestMenu;
new TestMenuStrings[6][16] = {"Test1", "Test2", "Test3", "Test4", "Test5", "Test6"};
HandleTestMenuSelection(playerid, row)
{
new s[256];
if(row < TEST_MENU_ITEMS) {
format(s,256,"You selected item %s",TestMenuStrings[row]);
SendClientMessage(playerid,0xFFFFFFFF,s);
}
}
InitTestMenu()
{
TestMenu = CreateMenu("Test Menu", 1, 200.0, 150.0, 200.0, 200.0);
for(new x=0; x < TEST_MENU_ITEMS; x++) {
AddMenuItem(TestMenu, 0, TestMenuStrings[x]);
}
}
public OnFilterScriptInit()
{
InitTestMenu();
}
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:PlayerMenu = GetPlayerMenu(playerid);
if(PlayerMenu == TestMenu) {
HandleTestMenuSelection(playerid, row);
}
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/menutest", true)) {
ShowMenuForPlayer(TestMenu, playerid);
return 1;
}
return 0;
}
But i want to change the Test0,Test1.... into the car models or in a picture,help me,tell me how to do it
Re: Menutest help -
Mouiz - 08.07.2015
please be fast
Re: Menutest help -
SpikeSpigel - 08.07.2015
1. What that command should do ? 2. Give me a photo of the command in game, of course , if you can and 3. What you want to modify at that command ? ?
Re: Menutest help -
Mouiz - 08.07.2015
Quote:
Originally Posted by SpikeSpigel
1. What that command should do ? 2. Give me a photo of the command in game, of course , if you can and 3. What you want to modify at that command ? ?
|
I am not making the command,just convert the options into the car pics\models (only 1)
its for learning
Re: Menutest help -
KingServerIRAN - 08.07.2015
Just use mSelection include it may help you
Re: Menutest help -
Mouiz - 08.07.2015
Quote:
Originally Posted by KingServerIRAN
Just use mSelection include it may help you
|
i dont want to use it,i want to learn how to make the model selection menu from this meathod