SA-MP Forums Archive
INI Float error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: INI Float error (/showthread.php?tid=444363)



INI Float error - CrazyManiac - 16.06.2013

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.


Re: INI Float error - OrMisicL - 16.06.2013

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


Re: INI Float error - CrazyManiac - 16.06.2013

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



Re: INI Float error - OrMisicL - 16.06.2013

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


Re: INI Float error - 2KY - 16.06.2013

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


Re: INI Float error - CrazyManiac - 16.06.2013

Alright, Thanks!!