Raised This Month: $120 Target: $400
 30% 

Solved No entries inside an array


Post New Thread Reply   
 
Thread Tools Display Modes
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Traphouse
Old 09-13-2018 , 16:27   Re: No entries inside an array
Reply With Quote #21

Quote:
Originally Posted by Ghosted View Post
yes, only first and last characters (Code if you understand C++)
It would be nicer if they made it to search the entire string instead of just the first and last characters, the native name is pretty mis-informing, at first I thought it removed every single quotation mark from the string.

Thanks everyone.
__________________
• Knife Bounty
• CS Battle Royale (PUBG)
• Contact/Ticket System

Santas vs Monsters New Private Mod

Juice Wrld
edon1337 is offline
Send a message via Skype™ to edon1337
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-13-2018 , 16:31   Re: No entries inside an array
Reply With Quote #22

Read the doc, it states that it does no trimming and only removes quotes at the beginning and end.
__________________
KliPPy is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Traphouse
Old 09-13-2018 , 16:32   Re: No entries inside an array
Reply With Quote #23

Quote:
Originally Posted by KliPPy View Post
Read the doc, it states that it does no trimming and only removes quotes at the beginning and end.
Still, it would be more helpful if it removed all the quotation marks.
__________________
• Knife Bounty
• CS Battle Royale (PUBG)
• Contact/Ticket System

Santas vs Monsters New Private Mod

Juice Wrld
edon1337 is offline
Send a message via Skype™ to edon1337
Old 09-13-2018, 16:38
Ghosted
This message has been deleted by Ghosted. Reason: sec
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 09-13-2018 , 16:40   Re: No entries inside an array
Reply With Quote #24

Code:
stock remove_quotes_ex(Str[], Len)
{
new Temp = 0;

for (new Index=0; Index < Len; Index++)
{
if (Str[Index] != '"')
Str[Temp++] = Str[Index];
}

Str[min(Len - 1, Temp)] = 0;
}
Tested n works
__________________

[MOD] CS Weapon Mod V1.7 (Report | 1.7.1 - 80%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)

Last edited by Ghosted; 09-13-2018 at 16:43.
Ghosted is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-13-2018 , 16:49   Re: No entries inside an array
Reply With Quote #25

Quote:
Originally Posted by edon1337 View Post
Still, it would be more helpful if it removed all the quotation marks.
Just use replace_all(), that's what it was made for, remove_quotes wouldn't exist if it did the exact same thing. remove_quotes() is great for handling command arguments or for parsing text in general, which is not that rare.
__________________

Last edited by KliPPy; 09-13-2018 at 16:50.
KliPPy is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 09-13-2018 , 21:19   Re: No entries inside an array
Reply With Quote #26

Quote:
Originally Posted by edon1337 View Post
Still, it would be more helpful if it removed all the quotation marks.
Quote:
Originally Posted by KliPPy View Post
Read the doc, it states that it does no trimming and only removes quotes at the beginning and end.
In fact, read the doc, not the native name
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS 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 19:27.


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