Raised This Month: $ Target: $400
 0% 

Array must be indexed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 08-18-2014 , 10:36   Re: Array must be indexed
Reply With Quote #3

Quote:
Originally Posted by KliPPy View Post
PHP Code:
if(name req_tag
In which programming language have you seen that? If I am right, you want to check if name variable contains cvar value(string)?
If so, the code should look like:
PHP Code:
new req_tag[12];
get_pcvar_string(tagreq_tagcharsmax(req_tag)); // this is how you retrieve cvar string value

if(containi(namereq_tag)) // or use contain() for case-sensitive check
{
        
// Do something

I have never seen that, but I'm a begginer in this and I really couldn't think of another way of doing it. Thank you so much for teaching me that! That's what I'll do from now on.
__________________
~ Swiftly and with style ~
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
 



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 13:13.


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