Aegis Support Board: Really strange... Solution? - Aegis Support Board

Jump to content

ASB News! ASB 5.0 Beta V2 has now been released!. See here for more Info.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Really strange... Solution?

#1 User is offline   Silver Fox 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 55
  • Joined: 09-August 03

Posted 30 August 2006 - 01:42 PM

Alright, this is the bit of code:

var pcount
dlgwritestr
pcount = inputstr
if (pcount < 5)


For some reason, it seems to only compare only the first digit. So if pcount is 5, it fails. 9 fails. 10 passes, 20 passes, 50 fails.

So how do I get it to compare the entire value of pcount?
0

#2 User is offline   barosan 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 92
  • Joined: 05-July 05
  • Location:Argentina

Posted 30 August 2006 - 01:48 PM

that because dlgwritestr is for string and in the if statement you are using a number (5), use dlgwrite x y where x is the lower value and y the higher value OR you can set the if
if (pcount < "5")

This post has been edited by barosan: 30 August 2006 - 01:49 PM

0

#3 User is offline   Silver Fox 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 55
  • Joined: 09-August 03

Posted 30 August 2006 - 01:54 PM

Thnx for the quick reply. However, setting it to compare "5" still doesn't help. I was actually going to try dlgwrite right after I posted this lol.
0

#4 User is offline   skyiing 

  • Expert Member
  • PipPipPipPipPipPip
  • Group: ASB Staff
  • Posts: 592
  • Joined: 01-May 03
  • Gender:Male

Posted 30 August 2006 - 02:02 PM

i think you better use the
dlgwrite
input
command for number

dlgwritestr
inputstr
command is use for word
0

#5 User is offline   Silver Fox 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 55
  • Joined: 09-August 03

Posted 30 August 2006 - 02:29 PM

Yeah, I used dlgwrite, worked out well.

Do any of you have any experience with GetNeighborPcNumber? It's GetNeighborPcNumber n, n being the radius around the player, right? And it's supposed to return the number of players around the target player. Can't seem to get this to work as I want it to yet.

This post has been edited by Silver Fox: 30 August 2006 - 02:29 PM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users