menu problem... "...more"
#1

hello, first sorry for my english, but i hope you understand:

i had 2 menus, but now i want to make 3... if im in the 2. vehicle menu (ingame), and i go to button "...more" i switch to the first vehicle..

Код:
buildMenu[4] = CreateMenu("Vehicle",1, 200.0, 125.0, 220.0, 50.0);
	SetMenuColumnHeader(buildMenu[4], 0, "Select the Vehicle");
	AddMenuItem(buildMenu[4],0,"Turismo");
	AddMenuItem(buildMenu[4],0,"Flash");
	AddMenuItem(buildMenu[4],0,"Banshee");
	AddMenuItem(buildMenu[4],0,"Cheetah");
	AddMenuItem(buildMenu[4],0,"Uranus");
	AddMenuItem(buildMenu[4],0,"NRG 500");
	AddMenuItem(buildMenu[4],0,"Sanchez");
	AddMenuItem(buildMenu[4],0,"Stunt Plane");
	AddMenuItem(buildMenu[4],0,"Caddy");
	AddMenuItem(buildMenu[4],0,"More...");

	buildMenu[5] = CreateMenu("Vehicle2",1, 200.0, 125.0, 220.0, 50.0);
	SetMenuColumnHeader(buildMenu[5], 0, "Select the Vehicle");
	AddMenuItem(buildMenu[5],0,"Sultan");
	AddMenuItem(buildMenu[5],0,"SuperGT");
	AddMenuItem(buildMenu[5],0,"Savanna");
	AddMenuItem(buildMenu[5],0,"BF Injection");
	AddMenuItem(buildMenu[5],0,"Monster");
	AddMenuItem(buildMenu[5],0,"Bullet");
	AddMenuItem(buildMenu[5],0,"Hotring");
	AddMenuItem(buildMenu[5],0,"Kart");
	AddMenuItem(buildMenu[5],0,"Hydra");//520
	AddMenuItem(buildMenu[5],0,"More...");
	
	buildMenu[6] = CreateMenu("Vehicle3",1, 200.0, 125.0, 220.0, 50.0);
	SetMenuColumnHeader(buildMenu[6], 0, "Select the Vehicle");
	AddMenuItem(buildMenu[6],0,"Police Car");
	AddMenuItem(buildMenu[6],0,"Tampa");
	AddMenuItem(buildMenu[6],0,"Hotknife");
	AddMenuItem(buildMenu[6],0,"Muellwagen");
	AddMenuItem(buildMenu[5],0,"More...");
Код:
case 5:
			{
				switch (row)
				{
					case 0: xCarIds[playerid][0] = 451;
					case 1: xCarIds[playerid][0] = 565;
					case 2: xCarIds[playerid][0] = 429;
					case 3: xCarIds[playerid][0] = 415;
					case 4: xCarIds[playerid][0] = 558;
					case 5: xCarIds[playerid][0] = 522;
					case 6: xCarIds[playerid][0] = 468;
					case 7: xCarIds[playerid][0] = 513;
					case 8: xCarIds[playerid][0] = 457;
					case 9: xCarIds[playerid][0] = 0, print("More..");
				}
				if (xCarIds[playerid][0] > 0)
				{
					SetPlayerVirtualWorld(playerid, playerid+100);
					printf("playerVirtual: %d world:%d",playerid, playerid+100);
					newCar(playerid);
				}
			}
			case 6:
			{
				switch (row)
				{
					case 0: xCarIds[playerid][0] = 560;
					case 1: xCarIds[playerid][0] = 506;
					case 2: xCarIds[playerid][0] = 567;
					case 3: xCarIds[playerid][0] = 424;
					case 4: xCarIds[playerid][0] = 556;
					case 5: xCarIds[playerid][0] = 541;
					case 6: xCarIds[playerid][0] = 494;
					case 7: xCarIds[playerid][0] = 571;
					case 8: xCarIds[playerid][0] = 520;
					case 9: xCarIds[playerid][0] = 0, print("More..");
				}
				if (xCarIds[playerid][0] > 0)
				{
					SetPlayerVirtualWorld(playerid, playerid+100);
					printf("playerVirtual: %d world:%d",playerid, playerid+100);
					newCar(playerid);
				}
			}
			case 7:
			{
				switch (row)
				{
					case 0: xCarIds[playerid][0] = 598;
					case 1: xCarIds[playerid][0] = 549;
					case 2: xCarIds[playerid][0] = 434;
					case 3: xCarIds[playerid][0] = 408;
					case 4: xCarIds[playerid][0] = 0, print("More..");
				}
				if (xCarIds[playerid][0] > 0)
				{
					SetPlayerVirtualWorld(playerid, playerid+100);
					printf("playerVirtual: %d world:%d",playerid, playerid+100);
					newCar(playerid);
				}
			}
wheres the mistake? hope u can help!
Reply
#2

pls help
Reply
#3

can nobody help me??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)