Raised This Month: $ Target: $400
 0% 

null in a string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 02-22-2006 , 08:42   null in a string
Reply With Quote #1

okay, my problem is that i have a string that contains a null character and amx thinks its the end of the line.
how could i split the text to get rest of the data?

here's an example script:
Code:
public test() {     new text[10]     format(text,9, "abc")     setc(text[3],1, 0x00)     format(text[4],9, "def")     client_print(0,print_chat, "Lenght: %d, String: %s", strlen(text), text) }
the response is of course:
Code:
Lenght: 3, String: abc
any ideas?
__________________
plop
p3tsin is offline
 



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 20:22.


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