Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cheaking someones fraction
#1
well I've been bored so I've been working on a pvp based game everything is working so far except for my function to cheak someones fraction. I'm sorry to bother people but would anyone mind helping me find whats wrong with it?

Code:
Function getplayerfraction(ByVal Index) As Long
Dim getfraction As integer
getfraction = GetVar(App.Path & "\fraction.ini", "fraction choice", GetPlayerName(Index))
End Function

thanks
zidsal
Reply
#2
no need for declare "getfraction as integer"

just make it like this

Code:
Function getplayerfraction(ByVal Index) As Long
getplayerfraction = CLng(GetVar(App.Path & "\fraction.ini", "fraction choice", GetPlayerName(Index)))
End Function

hope this help.
Reply
#3
thanks very much for the help but unfortunatly it didn't work Sad
Reply
#4
It's a faction, not a fraction.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#5
*checks Robin's fraction*

Ohh... so you divide by three, eh?
Reply
#6
Robin Wrote:It's a faction, not a fraction.

Exactly what I was thinking. But I though,t I'll let him make a mistake, he'll find out eventually. ;D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)