Raised This Month: $32 Target: $400
 8% 

Invalid expression, assumed zero


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 02-16-2019 , 04:57   Invalid expression, assumed zero
Reply With Quote #1

Hi, i dont know what to do with this script. Help anyone? Thanks.
PHP Code:
public ShowVips(id){
    new 
g_Name[64],g_Message[192];
    
    new 
g_Size=ArraySize(g_Array);
    
    for(new 
0g_Sizei++){
        
ArrayGetString(g_Arrayig_Namecharsmax(g_Name));
        
        
add(g_Messagecharsmax(g_Message), g_Name);
        
        if(
== g_Size 1){
            
add(g_Messagecharsmax(g_Message), "^x01.");
        }
        else{
            
add(g_Messagecharsmax(g_Message), ", ");
        }
    }
    
ColorChat(id,GREEN,"^x04[BB] ^x01VIPS ONLINE: ^x03%s"g_Message);
    else{     <---
THIS IS THE LINE WHERE ERROR IS !!!!-------------------------------------
    
ColorChat(id,GREEN,"^x04[BB] ^1No ^x04VIPs ^x01online."g_Message);
    }
    return 
PLUGIN_CONTINUE;


Last edited by HowToRuski; 02-16-2019 at 04:58.
HowToRuski is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-16-2019 , 07:29   Re: Invalid expression, assumed zero
Reply With Quote #2

Remove the line.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 02-16-2019 , 07:34   Re: Invalid expression, assumed zero
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
Remove the line.
But if im going to remove it it will show VIPS Online: HowToRuski and in the new line -> No Vips Online
HowToRuski is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-16-2019 , 08:12   Re: Invalid expression, assumed zero
Reply With Quote #4

If you remove it - the code will work.
There is no IF check to go along with the ELSE so that line makes no sense. When you're removing/editing something in the code - do it properly.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 02-16-2019 , 08:42   Re: Invalid expression, assumed zero
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
If you remove it - the code will work.
There is no IF check to go along with the ELSE so that line makes no sense. When you're removing/editing something in the code - do it properly.
i think you dont understand that it will show them both. i dont want them to show both as a vip is always online and after that it shows No VIps online
HowToRuski is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-16-2019 , 08:49   Re: Invalid expression, assumed zero
Reply With Quote #6

PHP Code:
   ..........



    if(
g_Size 0ColorChat(id,GREEN,"^x04[BB] ^x01VIPS ONLINE: ^x03%s"g_Message);
    else {
       
ColorChat(id,GREEN,"^x04[BB] ^1No ^x04VIPs ^x01online.");
    }
    return 
PLUGIN_CONTINUE;

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 02-16-2019 at 08:52.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Old 02-16-2019, 08:51
Mordekay
This message has been deleted by Mordekay.
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 02-16-2019 , 09:03   Re: Invalid expression, assumed zero
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
PHP Code:
   ..........



    if(
g_Size 0ColorChat(id,GREEN,"^x04[BB] ^x01VIPS ONLINE: ^x03%s"g_Message);
    else {
       
ColorChat(id,GREEN,"^x04[BB] ^1No ^x04VIPs ^x01online.");
    }
    return 
PLUGIN_CONTINUE;

This worked, ty.!
HowToRuski is offline
Reply


Thread Tools
Display Modes

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


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