Raised This Month: $ Target: $400
 0% 

Plugins compiles ok, but doesn't work as expected (strings)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
PyRo
Member
Join Date: Mar 2005
Old 04-26-2005 , 07:47  
Reply With Quote #4

Quote:
Originally Posted by karlos
try this:
Code:
if (isalpha(text[i]) && equal(text[i], text2[i], 1) ) {
compare text1 and text2 but only 1 char
Just recompiled and I'm waiting for the next map change to test it, but even if equal works like it should I still have no way of getting only a simgle character so the isalpha won't work like it should

Edit: Just tested and it's not working, probably because isalpha is returning false because of the null character terminating the string.
__________________
85.133.16.45:27035 - [CPP] Clan Server #1 (fun Maps)
85.133.16.48:27195 - [CPP] Clan Server #2 (Standard/Custom/Fun Maps)
PyRo 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 16:41.


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