weapon menu using mselection inc
#1

hey everybody...
i wanna create a weapon menu using mselection inc . it compiles successfully but it shows skins pictures instead of weapon one ... and when i choose one of them , it gives the player weapon id 1 only...
how to fix that?

Код:
	if(listid == weaplist)
	{
	    if(response)
	    {
         	GivePlayerWeapon(playerid, modelid, 99999);
		}
		else
		{
		    return 0;
		}
	}
Reply
#2

any help?
Reply
#3

Nobody?!
Reply
#4

The fragment of code you have given is nowhere near substantial enough for anyone to debug your problem. You need to give more code/context.
Reply
#5

oh okay
Код:
//at the top

new weaplist = mS_INVALID_LISTID;

//OnGameModeInIt

weaplist = LoadModelSelectionMenu("weap.txt");

//command

	CMD:w(playerid, params[])
	{
	    ShowModelSelectionMenu(playerid, weaplist, "Select Weapon");
	    return 1;
	}

//OnPlayerModelSelection

	if(listid == weaplist)
	{
     if(response)
	    {
         	GivePlayerWeapon(playerid, modelid, 99999);
		}
		else
		{
		    return 0;
		}
	}
Reply
#6

What is in "weap.txt"?
Reply
#7

the ids of weapons
i use mselection include
Reply
#8

I suggest you take this to the mSelection thread then, as it doesn't appear to be a scripting issue.
Reply
#9

hmm ok
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)