Posts: 134
Threads: 32
Joined: Dec 2007
Reputation:
0
error 017: undefined symbol "GetPVarInt"
if(GetPVarInt(i, "local") == GetPVarInt(playerid, "local"))
Any idea what's wrong here?
Posts: 214
Threads: 1
Joined: May 2010
Reputation:
0
Does it work elsewhere in the script all fine?
Might be some brackets above you forget to close.
Posts: 134
Threads: 32
Joined: Dec 2007
Reputation:
0
I'm actually getting these as well...
"pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level"
"gamemodes\script.pwn(1245) : warning 219: local variable "string" shadows a variable at a preceding level"
Posts: 214
Threads: 1
Joined: May 2010
Reputation:
0
No I mean, do you call GetPVarInt elsewhere in the script however no error comes up when compiling?
Posts: 134
Threads: 32
Joined: Dec 2007
Reputation:
0
The error is at the first line I use GetPVarInt
Posts: 214
Threads: 1
Joined: May 2010
Reputation:
0
And you are 100% sure you have the newest version of all inc files?
Posts: 134
Threads: 32
Joined: Dec 2007
Reputation:
0
I downloaded a fresh server and updated all of the plugins to the new folder.
I found that one of my custom functions didn't do anything with a string, so that was causing some of string problem.
Now the issue is just with GetPVarInt and other PVar's
Posts: 214
Threads: 1
Joined: May 2010
Reputation:
0
Redownload it and renew the files or at least a_players.inc
Posts: 134
Threads: 32
Joined: Dec 2007
Reputation:
0
Ah, I think I found the issue...
Now it is working in some areas of the script, and not others.
The PVar right before failure is this: SetPVarFloat(playerid, "health", 100);
...I assume that is wrong? How would you input health for the PVar Float?
Posts: 214
Threads: 1
Joined: May 2010
Reputation:
0
I don't see why that should be wrong, I still suppose there is a brackets mistake somewhere in your script.