27.01.2010, 01:49
Hello! I'm currently working on my gamemode and I've run into a small problem.
I'm trying to script this:
If the player is within a certain distance of a point and presses the [whatever key it may be] key and if they're health is 95% or lower, $2 is taken from them and their health is increased by 5 %.
I have done most of it, but I get 2 errors which are:
C:\Users\Noorie\Desktop\Transporter.pwn(138 : error 017: undefined symbol "IsPlayerInRange"
C:\Users\Noorie\Desktop\Transporter.pwn(1406) : error 030: compound statement not closed at the end of file (started at line 1376)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Can someone please help me fix this?
Thanks!.
http://pastebin.com/m331c79c9
I'm trying to script this:
If the player is within a certain distance of a point and presses the [whatever key it may be] key and if they're health is 95% or lower, $2 is taken from them and their health is increased by 5 %.
I have done most of it, but I get 2 errors which are:
C:\Users\Noorie\Desktop\Transporter.pwn(138 : error 017: undefined symbol "IsPlayerInRange"
C:\Users\Noorie\Desktop\Transporter.pwn(1406) : error 030: compound statement not closed at the end of file (started at line 1376)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Can someone please help me fix this?
Thanks!.
http://pastebin.com/m331c79c9