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

Change Mapname


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-18-2018 , 07:28   Re: Change Mapname
Reply With Quote #11

Quote:
Originally Posted by HamletEagle View Post
Put some debug messages. Output both mapname and left, also put a message inside the if check.
That's how you fix bugs.
Learning how to debug is the most important thing while coding. If you refuse to learn that better stop coding, it's not going to work.
Btw, you need only one map change to figure out what's not working if you do what I said.
__________________
HamletEagle is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-18-2018 , 07:39   Re: Change Mapname
Reply With Quote #12

Is there any performance falling if I use this plugin instead?

It works like I want. But using read_file command instead of fopen & fclose.
Spoiler
PurposeLessx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-18-2018 , 09:43   Re: Change Mapname
Reply With Quote #13

read_file and write_file are considered deprecated and should not be used in most cases.
__________________
HamletEagle is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-18-2018 , 09:46   Re: Change Mapname
Reply With Quote #14

I am using fopen instead of read_file but What I should use write_file instead? :S
PurposeLessx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-18-2018 , 10:01   Re: Change Mapname
Reply With Quote #15

Quote:
Originally Posted by PurposeLessx View Post
I am using fopen instead of read_file but What I should use write_file instead? :S
fputs, fprintf. SEARCH, there is a tutorial for this.
__________________
HamletEagle is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-18-2018 , 10:15   Re: Change Mapname
Reply With Quote #16

I am not good at searching also learning about them because of my English is not good enough.
But I am going to try searching these commands, thanks.
PurposeLessx 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 18:38.


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