INI Float error
#1

Hello everyone,

I've got ANOTHER problem... :P

I just created this:

Код:
new Float:X, Float:Y, Float:Z;
	GetPlayerPos(playerid, X,Y,Z);
	
	INI_WriteFloat(File,"Posx",X);
	INI_WriteFloat(File,"Posy",Y);
	INI_WriteFloat(File,"Posz",Z);
Underneath OnPlayerDisconnect, but now it's telling me this O_O:

Код:
C:\Documents and Settings\Fabian\My Documents\Script\gamemodes\Alpha.pwn(724) : error 017: undefined symbol "posx"
I don't know much about INI, so thats why i'm asking.

Greetz, CrazyManiac.
Reply
#2

Looks like u're using an undefined variable "posx", i really doubt the error comes from these lines u pasted above, use the "Go to line" feature in the pawno editor and paste us the error line
Reply
#3

Код:
SetPlayerPos(playerid, PlayerInfo[playerid][posx],PlayerInfo[playerid][posy],PlayerInfo[playerid][posz]);
Reply
#4

That means the "posx" element is not defined inside the "PlayerInfo" enum, refer back to that enum and add these variables
Reply
#5

Make sure your PlayerInfo enum has "posx", "posy", "posz" in them, and they're covered by the Float: tags.
Reply
#6

Alright, Thanks!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)