SA-MP Forums Archive
Save Position - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Save Position (/showthread.php?tid=390686)



Save Position - rokasma - 07.11.2012

Hello everyone,

I create my save position script by THIS

Error:
Код:
D:\samp servas\Naujas aplankas\gamemodes\****.pwn(214) : error 017: undefined symbol "INI_ParseFile"
D:\samp servas\Naujas aplankas\gamemodes\****.pwn(214) : warning 215: expression has no effect
D:\samp servas\Naujas aplankas\gamemodes\****.pwn(214) : error 029: invalid expression, assumed zero
D:\samp servas\Naujas aplankas\gamemodes\****.pwn(214) : error 017: undefined symbol "extra"
D:\samp servas\Naujas aplankas\gamemodes\****.pwn(214) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
This is place there is problem:
Код:
public OnPlayerConnect(playerid)
{
PosX[ playerid ] = 0;
PosY[ playerid ] = 0;
PosZ[ playerid ] = 0;
Angle[ playerid ] = 0;
Interior[ playerid ] = 0;
VirtualWorld[ playerid ] = 0;

INI_ParseFile( user_ini_file( playerid ), "load_user_%s", .bExtra = true, .extra = playerid );
return ( 1 );
}
What to do?

HELP ME!!


Re: Save Position - MatZZPL - 07.11.2012

Show me the enum collum please


Re: Save Position - HyDrAtIc - 07.11.2012

Do you have y_ini?


Re: Save Position - rokasma - 07.11.2012

http://www6.zippyshare.com/v/32124234/file.html

here is my pwn. Can you look?


Re: Save Position - MatZZPL - 07.11.2012

try that maybe? not sure didnt look at pwn..
Код:
public OnPlayerConnect(playerid)
{
PlayerInfo[playerid][PosX] = 0;
PlayerInfo[playerid][PosY] = 0;
PlayerInfo[playerid][PosZ] = 0;
PlayerInfo[playerid][Angle] = 0;
PlayerInfo[playerid][Interior] = 0;
PlayerInfo[playerid][VirtualWorld] = 0;

INI_ParseFile( user_ini_file( playerid ), "load_user_%s", .bExtra = true, .extra = playerid );
return ( 1 );
}



Re: Save Position - rokasma - 07.11.2012

Quote:
Originally Posted by James_Nick
Посмотреть сообщение
Do you have y_ini?
Yes, I have it.


Re: Save Position - HyDrAtIc - 07.11.2012

Deleted


Re: Save Position - rokasma - 07.11.2012

Quote:
Originally Posted by MatZZPL
Посмотреть сообщение
try that maybe? not sure didnt look at pwn..
Код:
public OnPlayerConnect(playerid)
{
PlayerInfo[playerid][PosX] = 0;
PlayerInfo[playerid][PosY] = 0;
PlayerInfo[playerid][PosZ] = 0;
PlayerInfo[playerid][Angle] = 0;
PlayerInfo[playerid][Interior] = 0;
PlayerInfo[playerid][VirtualWorld] = 0;

INI_ParseFile( user_ini_file( playerid ), "load_user_%s", .bExtra = true, .extra = playerid );
return ( 1 );
}
then error is:
Код:
D:\samp servas\Naujas aplankas\gamemodes\lvdm.pwn(207) : error 017: undefined symbol "PlayerInfo"
D:\samp servas\Naujas aplankas\gamemodes\lvdm.pwn(207) : warning 215: expression has no effect
D:\samp servas\Naujas aplankas\gamemodes\lvdm.pwn(207) : error 001: expected token: ";", but found "]"
D:\samp servas\Naujas aplankas\gamemodes\lvdm.pwn(207) : error 029: invalid expression, assumed zero
D:\samp servas\Naujas aplankas\gamemodes\lvdm.pwn(207) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: Save Position - MatZZPL - 07.11.2012

Add these
Quote:

PlayerInfo[playerid][PosX] = 0;
PlayerInfo[playerid][PosY] = 0;
PlayerInfo[playerid][PosZ] = 0;
PlayerInfo[playerid][Angle] = 0;
PlayerInfo[playerid][Interior] = 0;
PlayerInfo[playerid][VirtualWorld] = 0;

Everywhere in your collums and stuff should work

@Edit i need to go for 10mins, PM me if you don't solve it out. pretty easy to do.