Author Topic: still props invalid plz help me  (Read 2912 times)

0 Members and 1 Guest are viewing this topic.

Offline Scripter

  • Wiseguy
  • **
  • Posts: 62
    • View Profile
still props invalid plz help me
« on: December 18, 2010, 12:49:46 pm »
!addprop but it shows props invalid still  and props cost 100 and name unknown ses this pic may be u can understand


see the command of !addprop are it is right

Quote
  }
  elseif ($3 == addprop) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 10.
    elseif ($FBS.Level($1, $2) < 10) vcmp.msg $1 $2 Error, You need to be at least level 10 to use this command.
    elseif (!$4) vcmp.msg $1 $2 Error - Correct Syntax: ! $+ $3 <Cost> <Name>
    elseif (!$5) vcmp.msg $1 $2 Error - Correct Syntax: ! $+ $3 <Cost> <Name>
    elseif ($4 !isnum) vcmp.msg $1 $2 Error, Invalid Property Cost
    elseif (. isin $4) || (, isin $4) || (- isin $4) vcmp.msg $1 $2 Error, No negative or decimal Property Cost
    else {
      vcmp.msg $1 $2 Property Added, Price: $ $+ $4 $+ , Name: $5-
      !writeini -n FBS.PropCount.ini COUNT Count $calc($FBS.PropCount + 1)
      !writeini -n FBS.PropOwners.ini OWNERS $FBS.PropCount Vice City
      !writeini -n FBS.PropNames.ini NAMES $FBS.PropCount $5-
      !writeini -n FBS.PropCosts.ini COSTS $FBS.PropCount $4
      !writeini -n FBS.PropLocs.ini x $FBS.PropCount $vcmp.location($1, $2).x
      !writeini -n FBS.PropLocs.ini y $FBS.PropCount $vcmp.location($1, $2).y
      !writeini -n FBS.PropLocs.ini z $FBS.PropCount $vcmp.location($1, $2).z
      !writeini -n FBS.PropSpawn.ini LOCATION $FBS.PropCount $calc($vcmp.location($1, $2).x - 2) $calc($vcmp.location($1, $2).y + 2) $vcmp.location($1, $2).z
      vcmp.newpickup $1 407 $calc($vcmp.location($1, $2).x + 2) $vcmp.location($1, $2).y $vcmp.location($1, $2).z
      fbs.checkprops   
    }
  }


can some one fix it

Quote
;------------ Property Aliases ---------------

alias FBS.PropCount !return $iif($readini(FBS.PropCount.ini,COUNT,Count),$v1,0)
alias FBS.PropPrice !return $iif($readini(FBS.PropCosts.ini,COSTS,$1),$v1,100)
alias FBS.PropOwner !return $iif($readini(FBS.PropOwners.ini,OWNERS,$1),$v1,Vice City)
alias FBS.PropShares !return $iif($readini(FBS.PropOwners.ini,SHARES,$1),$v1,None)
alias FBS.PropName !return $iif($readini(FBS.PropNames.ini,NAMES,$1),$v1,Unknown)
alias FBS.Mypropshares !return $iif($readini(FBS.MyProps.ini,SCOUNT,$vcmp.name(1, $2)),$v1,0)
alias FBS.PropLoc !return $iif($readini(FBS.PropLocs.ini,LOCATIONS,$1),$v1,Unknown)
alias FBS.IncMyProps !writeini -n FBS.MyProps.ini COUNT $vcmp.name(1, $2) $calc($FBS.MyProps(1, $2) + $iif($3,$v1,0))
alias FBS.DecMyProps !writeini -n FBS.MyProps.ini COUNT $vcmp.name(1, $2) $calc($FBS.MyProps(1, $2) - $iif($3,$v1,0))
alias FBS.MyProps !return $iif($readini(FBS.MyProps.ini,COUNT,$vcmp.name(1, $2)),$v1,0)
alias FBS.SpawnSetting !return $iif($readini(FBS.PropSpawn.ini,STATUS,$vcmp.name(1, $1)),$v1,0ff)
alias FBS.LoadProps {
  var %a = 1
  set %propcount 0

  while (%a <= 100) {
    if (%a <= $FBS.PropCount) {
      vcmp.newpickup $1 407 $readini(FBS.PropLocs.ini,x,%a) $readini(FBS.PropLocs.ini,y,%a) $readini(FBS.PropLocs.ini,z,%a)
      !inc %propcount
    }
    !inc %a
  }
  timer.checkproperties 1 8 fbs.checkcount
}
alias FBS.getmysharedprops {
  var %a = 1
  while (%a <= %propcount) {
    if ($readini(FBS.PropOwners.ini,SHARES,%a) == $vcmp.name($1, $2)) var %b = %b $readini(FBS.PropNames.ini,NAMES,%a) $+ , ID: %a -
    !inc %a
  }
  !return %b
}
alias FBS.CheckCount {
  if (%propcount == $fbs.propcount) {
    FBS.Echo 7 $+ $chr(91) %propcount $+ / $+ $fbs.propcount $chr(93) Properties Loaded Succesfully
  }
  else FBS.Echo 7Error loading Properties $chr(91) %propcount $+ / $+ $FBS.PropCount $chr(93)
}
alias FBS.PropInfo {
  var %a = 1
  while (%a <= 100) {
    if (%a == $1) {
      if ($FBS.PropOwner($1) == Vice City) {
        vcmp.msg 1 $2 Property Name:[ $FBS.PropName($1) $chr(93) ID:[ $1 $chr(93) Owner:[ Vice City $chr(93) Cost:[ $ $+ $FBS.PropPrice($1) $chr(93)
        vcmp.msg 1 $2 Type !buyprop $1 to buy this property
      }
      elseif ($FBS.PropOwner($1) != Vice City) && ($FBS.PropShares($1) != None) {
        vcmp.msg 1 $2 Property Name:[ $FBS.PropName($1) $chr(93) ID:[ $1 $chr(93) Owner:[ $FBS.PropOwner($1) $chr(93) Share:[ $FBS.PropShares($1) $chr(93) Selling Price:[ $ $+ $calc($FBS.PropPrice($1) / 2) $chr(93)     
      }
      elseif ($FBS.PropOwner($1) != Vice City) && ($FBS.PropShares($1) == None) {
        vcmp.msg 1 $2 Property Name:[ $FBS.PropName($1) $chr(93) ID:[ $1 $chr(93) Owner:[ $FBS.PropOwner($1) $chr(93) Selling Price:[ $ $+ $calc($FBS.PropPrice($1) / 2) $chr(93)     
      }
      else vcmp.msg $1 $2 Error, No information can be found for this property
    }
    !inc %a
  }
}
« Last Edit: December 19, 2010, 08:04:04 pm by StriKe »

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: still props invalid plz help me
« Reply #1 on: December 19, 2010, 03:02:24 pm »
Stop talking to yourself :@!

As I remember, FBS had a properties bug. Didn't worked to me too. Check whole FBS topic, Force posted there some resolves for this bug...

Offline Kill3R

  • VC:MP Beta Tester
  • Street Thug
  • *
  • Posts: 28
  • uhm... iam n00b, what to type here???
    • View Profile
    • Hunting-Arena
Re: still props invalid plz help me
« Reply #2 on: December 20, 2010, 01:47:29 am »

Regards,
Kill3R

Offline Scripter

  • Wiseguy
  • **
  • Posts: 62
    • View Profile
Re: still props invalid plz help me
« Reply #3 on: December 20, 2010, 11:20:31 am »
no i have problem with props cost and name it shows name unknown and cost 100$ and when i try to  buy it it says invalid id