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

help with a line


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mankled
Senior Member
Join Date: Oct 2019
Old 10-09-2019 , 23:21   help with a line
Reply With Quote #1

how can i put lang in this line

PHP Code:
menu_setprop(MenuMPROP_BACKNAME"Back"
to like this:
ex:
PHP Code:
client_print(0print_chat"%L"LANG_PLAYER"RESULT_REF"
Mankled is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 10-10-2019 , 01:13   Re: help with a line
Reply With Quote #2

By providing a formatex() before the menu_setprop()
instinctpt1 is offline
Mankled
Senior Member
Join Date: Oct 2019
Old 10-10-2019 , 01:48   Re: help with a line
Reply With Quote #3

it gave me a error:
PHP Code:
formatex(menu_setprop(MenuMPROP_EXITNAME"%L"LANG_PLAYER"EXIT"

PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2013 ITB CompuPhaseAMX Mod X Team

Error
Argument type mismatch (argument 1on line 177

1 Error
.
Could not locate output file C:\Users\mank\Desktop\pluginmenu.amx (compile failed). 
Mankled is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 10-10-2019 , 03:45   Re: help with a line
Reply With Quote #4

Code:
new szText[10] formatex(szText, charsmax(szText), "%L", LANG_PLAYER, "EXIT") menu_setprop(Menu , MPROP_BACKNAME , szText)
LearninG is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-10-2019 , 13:55   Re: help with a line
Reply With Quote #5

Check the API if you're not sure about a function's arguments.
If you're using AMXX 1.9+, you can do everything in one line by using the "fmt" function.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 07:55.


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