Making a Menu, That Gives a Fightstyle & Takes Money
#1

Hey Guys, I'm Tryying to Complete a Menu for Los Santos Gym.

Now...

Ive Created the Menu
Код:
	Learn = CreateMenu("Ganton Gym", 2, 400.0, 400.0, 150.0, 150.0);
	AddMenuItem(Learn, 1, "Default Style	 - $500");
	AddMenuItem(Learn, 1, "Kick Boxing Style - $1250");
	AddMenuItem(Learn, 1, "Brawling Style	 - $2250");
	AddMenuItem(Learn, 1, "Grab & Kick Style - $2850");
	AddMenuItem(Learn, 1, "Grab & Knee Style - $3000");
	AddMenuItem(Learn, 1, "Kung-Fu Style	 - $3250");
Then After ive Created That, ive Gone onto a Infomation Icon in the LS Gym.
Код:
new gLearn;
Then After that I Needed to add a Command on(within Range) of the Infomation Icon
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/Learn",cmdtext, true, 10) == 0)
	{
		if(IsPlayerInRangeOfPoint(playerid,3.0, 771.1017, 12.5446, 1000.7006))
		{
    		ShowMenuForPlayer(Learn, playerid);
    		return 1;
		}
	}
	return 0;
}
Then Ive Created what Happen on the Selection of Menus

Код:
	public OnPlayerSelectedMenuRow(playerid, row)
	{
		new Menu:CurrentMenu = GetPlayerMenu(playerid);if(CurrentMenu == Learn)
		{
			switch(row)
			{
			case 0: //Normal Style - $500
				{
				    if(GetPlayerMoney(playerid) < 499)
				    {
					GivePlayerMoney(playerid, -500);
					SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
					GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~Finished! ~n~~y~] ] ]",10000,3);
					SendClientMessage(playerid, 0xFFFFFFFF, "---------------------------------");
					SendClientMessage(playerid, 0xFFFFFFFF, "- [[Certificate of Achievement]] -");
					SendClientMessage(playerid, 0xFFFFFFFF, "-     Normal Fighting Style     -");
					SendClientMessage(playerid, 0xFFFFFFFF, "---------------------------------");
					}
				}
			case 1: 
				{
				//Needs Coding
				}
			case 2: 
				{
				//Needs Coding
				}
			case 3: 
				{
				//Needs Coding
				}
			case 4: 
				{
				//Needs Coding
				}
			case 5: 
				{
				//Needs Coding
				}
			}
		}
		return 1;
	}
But, Somthing's Not Right.
Why? What am i Doing Wronge, this going based of my own experince & and a tiny help from website, im tryna code without looking at websites so much so i learn by myself (best way i learn)

could anyone help me?
what am i doing wronge?


EDIT: I get no errors.
Reply
#2

whats not working on it? if you get no error's?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)