Raised This Month: $51 Target: $400
 12% 

New API and Syntax


Post New Thread Reply   
 
Thread Tools Display Modes
R1KO
Member
Join Date: Sep 2013
Old 09-06-2015 , 13:55   Re: New API and Syntax
Reply With Quote #601

@BAILOPAN: 1.7.2 Release
R1KO is offline
Send a message via Skype™ to R1KO
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 09-06-2015 , 14:25   Re: New API and Syntax
Reply With Quote #602

Try the latest 1.7.3 snapshot
__________________
WildCard65 is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 10-03-2015 , 11:07   Re: New API and Syntax
Reply With Quote #603

I don't know if someone already requested this but can I request that plugins work in a module-type system similar to how Python does?

If the answer is no, why not?
__________________

Last edited by nergal; 10-03-2015 at 11:07.
nergal is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 10-03-2015 , 11:41   Re: New API and Syntax
Reply With Quote #604

Isn't that what inc files are for?
Potato Uno is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 10-03-2015 , 13:32   Re: New API and Syntax
Reply With Quote #605

Quote:
Originally Posted by Potato Uno View Post
Isn't that what inc files are for?
No.

inc files are include directives. -> https://en.wikipedia.org/wiki/Include_directive

A module system would be similar to how Python executes code and you can use said code in other scripts via import.

I think bailopan was talking about something like this with the case of removing the ideas of natives and forwards.
__________________

Last edited by nergal; 10-03-2015 at 13:35.
nergal is offline
Kubad
Senior Member
Join Date: Sep 2015
Location: Czech Republic
Old 10-10-2015 , 12:37   Re: New API and Syntax
Reply With Quote #606

hello i need help i trying create on menu item click and menu with weapons for all

Code:
    if(StrEqual(Item, "test"))
    {
    f (IsClientInGame(client) && IsPlayerAlive(client))
    {
    new Handle:forall = CreateMenu(Menuforall, MENU_ACTIONS_ALL);
    SetMenuTitle(forall, "Menu For All ");
    AddMenuItem(forall, "test2", "AK-47");
    AddMenuItem(forall, "test3", "M4A4");
    AddMenuItem(forall, "test4", "M4A1-S");
    AddMenuItem(forall, "test5", "Awp");
    SetMenuPagination(forall, 7);
    SetMenuExitButton(forall, false);
    DisplayMenu(forall, client, 350);
	}

        }
and again sorry for my bad english
Kubad is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 10-10-2015 , 13:00   Re: New API and Syntax
Reply With Quote #607

Quote:
Originally Posted by Kubad View Post
hello i need help i trying create on menu item click and menu with weapons for all

Code:
    if(StrEqual(Item, "test"))
    {
    f (IsClientInGame(client) && IsPlayerAlive(client))
    {
    new Handle:forall = CreateMenu(Menuforall, MENU_ACTIONS_ALL);
    SetMenuTitle(forall, "Menu For All ");
    AddMenuItem(forall, "test2", "AK-47");
    AddMenuItem(forall, "test3", "M4A4");
    AddMenuItem(forall, "test4", "M4A1-S");
    AddMenuItem(forall, "test5", "Awp");
    SetMenuPagination(forall, 7);
    SetMenuExitButton(forall, false);
    DisplayMenu(forall, client, 350);
    }

        }
and again sorry for my bad english
PHP Code:
Menu forall = new Menu(MenuforallMENU_ACTIONS_ALL);
forall.SetTitle("Menu For All: ");
forall.AddItem("test2""AK-47");
forall.AddItem("test3""M4A4");
forall.AddItem("test4""M4A1-S");
forall.AddItem("test5""Awp");
forall.Pagination 7;
forall.ExitBackButton true;
forall.Display(client350); 
__________________
nergal is offline
Kubad
Senior Member
Join Date: Sep 2015
Location: Czech Republic
Old 10-10-2015 , 13:19   Re: New API and Syntax
Reply With Quote #608

not showing for all

i need /menu only for Admin and click Weapons

and Show Menu with Weapons For All

PHP Code:

    
if(StrEqual(Item"weapons"))
    {
    if (
IsClientInGame(client) && IsPlayerAlive(client))
    {
    
Menu forall = new Menu(MenuforallMENU_ACTIONS_ALL);
       
forall.SetTitle("Menu For All: ");
    
forall.AddItem("test2""AK-47");
    
forall.AddItem("test3""M4A4");
    
forall.AddItem("test4""M4A1-S");
    
forall.AddItem("test5""Awp");
    
forall.Pagination 10;
    
forall.ExitBackButton true;
    
forall.Display(client350);  

    } 

Last edited by Kubad; 10-10-2015 at 15:09.
Kubad is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 10-10-2015 , 15:26   Re: New API and Syntax
Reply With Quote #609

Quote:
Originally Posted by Kubad View Post
not showing for all

i need /menu only for Admin and click Weapons

and Show Menu with Weapons For All

PHP Code:

    
if(StrEqual(Item"weapons"))
    {
    if (
IsClientInGame(client) && IsPlayerAlive(client))
    {
    
Menu forall = new Menu(MenuforallMENU_ACTIONS_ALL);
       
forall.SetTitle("Menu For All: ");
    
forall.AddItem("test2""AK-47");
    
forall.AddItem("test3""M4A4");
    
forall.AddItem("test4""M4A1-S");
    
forall.AddItem("test5""Awp");
    
forall.Pagination 10;
    
forall.ExitBackButton true;
    
forall.Display(client350);  

    } 
Wrong topic
KissLick is offline
Kubad
Senior Member
Join Date: Sep 2015
Location: Czech Republic
Old 10-10-2015 , 15:41   Re: New API and Syntax
Reply With Quote #610

i know sorry guys
Kubad is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode