Raised This Month: $ Target: $400
 0% 

Strings


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 02-25-2007 , 19:55   Strings
Reply With Quote #1

Okay this is a two part question.

1. Is this wrapper possible?
PHP Code:
#define strsize(%1) sizeof(%1) - 1 
2. If #1 = yes. I seem to have compiling errors with a 3 dimensional array

PHP Code:
new g_string[MAX_A][MAX_B][32]
copy(g_string[num_of_a][num_of_b], strsize(g_string[num_of_a][num_of_b]), sometext
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 02-25-2007 , 21:50   Re: Strings
Reply With Quote #2

1. Yes.

2. Please post what your errors are. Besides that, I think you're using sizeof wrong which is causing your errors. I'm not exactly sure how to use it properly.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 02-25-2007 , 21:53   Re: Strings
Reply With Quote #3

Im thinking because its a 3d array

Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Expected token: "]", but found "-identifier-" on line 71
Warning: Expression has no effect on line 71
Error: Expected token: ";", but found "]" on line 71
Error: Invalid expression, assumed zero on line 71
Error: Too many error messages on one line on line 71

Compilation aborted.
4 Errors.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.

Last edited by Cheap_Suit; 02-25-2007 at 21:55.
Cheap_Suit is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-26-2007 , 02:52   Re: Strings
Reply With Quote #4

Should be strsize(g_string[][][])
VEN is offline
Old 02-26-2007, 03:15
Cheap_Suit
This message has been deleted by Cheap_Suit. Reason: Thank you!
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 00:34.


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