Raised This Month: $ Target: $400
 0% 

bracket error?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
infek
Senior Member
Join Date: May 2009
Location: Behind you
Old 04-04-2010 , 04:43   bracket error?
Reply With Quote #1

invalid expression assumed zero
error on "else"
Code:
ActionPoop(id, ent)
{
 static property1[5];
 GetProperty(ent, 1, property1);
 new Float:team = str_to_float(property1);
 {
  if(team <= 1.0)
  {
                     set_task(0.5, "Poop", id, _, _, "b");
  }
  else if(team == 2.0)
  {
   if(get_user_team(id) == 1)
   {
                                set_task(0.5, "Poop", id, _, _, "b");
   }
   else if(get_user_team(id) == 2)
   {
    set_hudmessage(255, 0, 0, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
    show_hudmessage(id, "Chachaaaaaa");
   }
  }
  else if(team == 3.0)
  {
   if(get_user_team(id) == 2)
   {
                                set_task(0.5, "Poop", id, _, _, "b");
   }
   else if(get_user_team(id) == 1)
   {
  set_hudmessage(255, 0, 0, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
  show_hudmessage(id, "Chacha!");
   }
  }
 }
 else <-- THIS IS THE ERROR
 {
  set_hudmessage(255, 0, 0, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
  show_hudmessage(id, "Chachaaaaa");
 }
}
__________________
"Domo Arigato, Mr. Roboto!"
PM me if you want to know a secret
infek 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 07:38.


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