Raised This Month: $32 Target: $400
 8% 

Create Flag on Map 3.2


Post New Thread Reply   
 
Thread Tools Display Modes
quLeryuzz
Member
Join Date: May 2010
Location: Istanbul
Old 07-12-2019 , 13:30   Re: Create Flag on Map 2.0
Reply With Quote #11

Quote:
Originally Posted by OciXCrom View Post
I hope you mean 1.8.2., because 1.8.1 is an old and unsupported version for 5+ years.
Thanks, I corrected.
__________________

csduragi.com
quLeryuzz is offline
mousesports
Senior Member
Join Date: Oct 2010
Old 07-13-2019 , 08:29   Re: Create Flag on Map 2.0
Reply With Quote #12

Hello , i try to install this plugin and my server just got crashed .
__________________
mousesports is offline
quLeryuzz
Member
Join Date: May 2010
Location: Istanbul
Old 07-13-2019 , 09:21   Re: Create Flag on Map 2.0
Reply With Quote #13

Quote:
Originally Posted by mousesports View Post
Hello , i try to install this plugin and my server just got crashed .
I saw the error. There is a problem about AmxModx 1.8.2. The plugin isn't taking info in ini file.I will correct in little time.
__________________

csduragi.com
quLeryuzz is offline
quLeryuzz
Member
Join Date: May 2010
Location: Istanbul
Old 07-13-2019 , 12:22   Re: Create Flag on Map 2.0
Reply With Quote #14

Quote:
Originally Posted by mousesports View Post
Hello , i try to install this plugin and my server just got crashed .
If you delete first line in FlagModels.ini, it will correct.
You should delete this
Code:
;"ModelFile" "Skin1Name" "Skin2Name" "Skin3Name"
I don't know why isn't work "containi(modelname,";")!=0" on AmxModx 1.8.2.
__________________

csduragi.com
quLeryuzz is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-13-2019 , 13:00   Re: Create Flag on Map 2.0
Reply With Quote #15

containi returns -1 in case of failure, not 0. Nonetheless, check if line starts with ';' you are checking if it contains ';' instead.
Code:
#define starts_with(%1,%2) equal(%1,%2,strlen(%2)) // or #define starts_with2(%1,%2) %1[0] == %2 // But this checks only first character, you can't check for example "//"

Last edited by thEsp; 07-13-2019 at 13:04.
thEsp is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-13-2019 , 13:01   Re: Create Flag on Map 2.0
Reply With Quote #16

Quote:
I don't know why isn't work "containi(modelname,";")!=0" on AmxModx 1.8.2.
https://www.amxmodx.org/api/string/containi

"containi" returns the position in the string in which the ";" is located, so checking "!= 0" will check if it's found on any position except the first one.

Quote:
;"ModelFile" "Skin1Name" "Skin2Name" "Skin3Name"
Here the ";" is exactly on the first position (0), so your check is doing the opposite thing.
You should check "modelname[0] != ';'" instead or compare "containi" with "-1".
Also don't forget to use "trim" in order to remove any unwanted spaces.
__________________

Last edited by OciXCrom; 07-13-2019 at 13:02.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
smurfavr
Member
Join Date: Jan 2011
Location: Bulgaria
Old 07-14-2019 , 08:59   Re: Create Flag on Map [ReAPI]
Reply With Quote #17

Quote:
Originally Posted by quLeryuzz View Post
G
You just will open model file with paranoia 2 model viewer or Jed's Half Life model viewer. You will come to "textures" and u will change skins. After, you will change model's name in sma file. And you will compile.
If you say "I can't", just send me what do you want country's flag picture.
Can you add the flag to Bulgaria?



Please make the Create Flags menu not disappear by pressing Option 1. Make it appear with the 0 key on the menus. If I want to put 5 flags on the map, every run must open the console and enter the command.
__________________





Last edited by smurfavr; 07-14-2019 at 09:18.
smurfavr is offline
Send a message via Skype™ to smurfavr
mousesports
Senior Member
Join Date: Oct 2010
Old 07-14-2019 , 11:17   Re: Create Flag on Map 2.0
Reply With Quote #18

unknown unknown unknown FlagsOnMap.amxx bad load


] amx_flagmenu
Unknown command: amx_flagmenu
__________________
mousesports is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-14-2019 , 13:08   Re: Create Flag on Map 2.0
Reply With Quote #19

Quote:
Originally Posted by mousesports View Post
unknown unknown unknown FlagsOnMap.amxx bad load


] amx_flagmenu
Unknown command: amx_flagmenu
Compile the plugin locally. Stop using online compilers.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
mousesports
Senior Member
Join Date: Oct 2010
Old 07-14-2019 , 15:20   Re: Create Flag on Map 2.0
Reply With Quote #20

Ok, now its working but the flag didnt save if i change the map .
__________________
mousesports is offline
Reply


Thread Tools
Display Modes

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 12:03.


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