Raised This Month: $ Target: $400
 0% 

[SOLVED]Array stuffs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-14-2007 , 15:00   [SOLVED]Array stuffs
Reply With Quote #1

Huh,shame to post here () but what the hell, i have spent hours to get the problem but nothing. The structure in file is like this:
Code:
What the hell is erath? ;A shit
What is a retard? ;A dumb kid without a brain.

1st is the question then is the answer, loading is maded correctly
Code:
client_print(0, print_chat, "Answer : %s", CurrentAnswer);
, this is debug and the answer is correct, then i store the answer to a global and check for it in "say args" but is NOT WORKING. I type the correct answer but is not showing nothing (
Code:
client_print(0, print_chat, "Correct Answer");
). :S

The oddest thing is that is working only for last line from file. E.g
Code:
What is a retard? ;A dumb kid without a life
if i type "A dumb kid without a life" is working :S

Thanks.
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 11-15-2007 at 09:48.
Alka is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-14-2007 , 15:09   Re: Array stuffs
Reply With Quote #2

"you wined"
Seriously?

Code:
for(new i = 0 ; i < Num ; i++) {     client_print(0, print_chat, "Answer : %s", CurrentAnswer); }
I assume that's wrong. Or debugging purpose, since I noticed it gave the answer when the question was shown...

Last edited by [ --<-@ ] Black Rose; 11-14-2007 at 15:16.
[ --<-@ ] Black Rose is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-15-2007 , 09:49   Re: [SOLVED]Array stuffs
Reply With Quote #3

huh, "you gained" what ever. I know i should put the client_print outside of the loop, but the prupose of it was to show if the current answer is the same from file. Thanks anyway , problem solved, i trimed the lines from files and worked o_O.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-15-2007 , 13:48   Re: [SOLVED]Array stuffs
Reply With Quote #4

I would say "you won".

Good.
[ --<-@ ] Black Rose is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-15-2007 , 14:02   Re: [SOLVED]Array stuffs
Reply With Quote #5

Huh, yeah, your right! Nvm...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
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 01:18.


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