Menutest help
#1

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
Reply
#2

please be fast
Reply
#3

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 ? ?
Reply
#4

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
Reply
#5

Just use mSelection include it may help you
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)