Raised This Month: $ Target: $400
 0% 

Can not understand how to fix error 033: array must be indexed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mofforg
Senior Member
Join Date: Aug 2010
Location: Moscow, Russia
Old 07-06-2013 , 05:05   Can not understand how to fix error 033: array must be indexed
Reply With Quote #1

Here's a part of code on say hook, i've just checked current variable of setinfo 'translit' and then if it's 0 i set to 1, if it's 1 i set to 0.

PHP Code:
    else if(containi(say_args"/lang") != -)
    {
        
get_user_info(id,"translit",lang,2)
        if(
lang == 0
            
set_user_info(id,"translit","1");
        else if(
lang == 1
            
set_user_info(id,"translit","0");
        return 
PLUGIN_HANDLED
    

But it returns an error:
PHP Code:
error 033: array must be indexed (variable "lang"
Please help me - how to fix? What's wrong there?
Mofforg is offline
Send a message via ICQ to Mofforg Send a message via Skype™ to Mofforg
 



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 06:27.


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