Vice City Multiplayer
December 04, 2022, 02:43:28 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: VC:MP 0.3z r2 is released! http://vicecitymultiplayer.com
 
   Home   Help Search Members Login Register  
Pages: [1]
  Print  
Author Topic: Uhmm !ann  (Read 1637 times)
0 Members and 1 Guest are viewing this topic.
BoySticK
Street Thug
*
Offline Offline

Posts: 39


View Profile
« on: December 17, 2008, 09: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
« Last Edit: December 17, 2008, 09:34:43 pm by BoySticK » Logged
Force
Crime Boss
****
Offline Offline

Posts: 297


View Profile
« Reply #1 on: December 17, 2008, 09: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:
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
    }
  }
}
Logged

BoySticK
Street Thug
*
Offline Offline

Posts: 39


View Profile
« Reply #2 on: December 17, 2008, 11:31:03 pm »

Ohh.. Thnx =D
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!