Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: BoySticK on December 17, 2008, 11:30:15 pm

Title: Uhmm !ann
Post by: BoySticK on December 17, 2008, 11:30:15 pm
I did it.. but only i can see
nobody see my announce O__o
What is the problem here

Quote
  elseif ($2 == !ann) || ($2 == !pmann) {
    if ($vcmp.cmdcheck(!ann,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <text>
    else vcmp.announce  $+(~y~,$3-)
  }

o.O
Title: Re: Uhmm !ann
Post by: Force on December 17, 2008, 11:37:40 pm
If you want it to go to all players then you need a loop.

If you were using the old DLL then I could have made the loop user friendly, but, your using the old one. ._.

Code: [Select]
elseif ($2 == !ann) || ($2 == !pmann) {
  if ($vcmp.cmdcheck(!ann,%id) == fail) !halt
  elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <text>
  else {
    var %a = 0
    while (%a <=  50) {
      if ($vcmp.name(%a) != Unknown) {
        vcmp.announce  %a ~y~ $3-
      }
      !inc %a
    }
  }
}
Title: Re: Uhmm !ann
Post by: BoySticK on December 18, 2008, 01:31:03 am
Ohh.. Thnx =D