Author Topic: Working with getplayerstat  (Read 1709 times)

0 Members and 1 Guest are viewing this topic.

Offline cynicle

  • Major(1)
  • Posts: 37
Working with getplayerstat
« on: June 07, 2007, 08:20:26 am »
Hey i just need help with getplayerstat function.
This is what im tryint to do basically.

Code: [Select]
var
botname: string;
isplayer: boolean;

botname := IDToName(Shooter);
isplayer := GetPlayStat(botname,'Human')
if isplayer = false then

Says theres a problem with my isplayer line just wondering how the GetPlayerStat function is meant to be used. I also havent worked with booleans before.

Cheers
Join the Army. Visit strange and exotic places. Meet fascinating people. And kill them.

Aus Soldat League 203.208.70.216:23073

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Working with getplayerstat
« Reply #1 on: June 07, 2007, 10:59:57 am »
GetPlayerStat(ID, 'Human')
urraka

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Working with getplayerstat
« Reply #2 on: June 07, 2007, 06:40:32 pm »
Code: [Select]
var
botname: string;
isplayer: boolean;

botname := IDToName(Shooter);
isplayer := GetPlayerStat(Shooter,'Human')
if isplayer = false then

Use that.

Offline cynicle

  • Major(1)
  • Posts: 37
Re: Working with getplayerstat
« Reply #3 on: June 08, 2007, 04:43:52 am »
Unknown identifyier getplayerstat.
« Last Edit: June 08, 2007, 09:10:55 am by cynicle »
Join the Army. Visit strange and exotic places. Meet fascinating people. And kill them.

Aus Soldat League 203.208.70.216:23073

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Working with getplayerstat
« Reply #4 on: June 08, 2007, 05:15:32 am »
Well durrrrrrrrrrrrrr, no such function called getplayerscript.... You cant just make up function names and expect them to exist...

Offline cynicle

  • Major(1)
  • Posts: 37
Re: Working with getplayerstat
« Reply #5 on: June 08, 2007, 09:11:25 am »
sorry that was just a typo, it says unkown udentifyier getplayerstat
Join the Army. Visit strange and exotic places. Meet fascinating people. And kill them.

Aus Soldat League 203.208.70.216:23073

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Working with getplayerstat
« Reply #6 on: June 08, 2007, 12:50:48 pm »
In the code shown above it doesn't say GetPlayerStat, it says GetPlayStat. Can you see the difference?
urraka

Offline cynicle

  • Major(1)
  • Posts: 37
Re: Working with getplayerstat
« Reply #7 on: June 09, 2007, 09:02:10 pm »
thanks Perro

Cant believe i missed that.
Join the Army. Visit strange and exotic places. Meet fascinating people. And kill them.

Aus Soldat League 203.208.70.216:23073