Save Position
#1

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!!
Reply
#2

Show me the enum collum please
Reply
#3

Do you have y_ini?
Reply
#4

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

here is my pwn. Can you look?
Reply
#5

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 );
}
Reply
#6

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

Deleted
Reply
#8

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.
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)