SA-MP Forums Archive
cannot read from file: "dini" - 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: cannot read from file: "dini" (/showthread.php?tid=330635)



cannot read from file: "dini" - Scripter12345 - 01.04.2012

The title says it all


I have Dini.inc in my include folder but i am getting this error


Код:
fatal error 100: cannot read from file: "dini"

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


1 Error.
Please Help Me


Thank you


Re: cannot read from file: "dini" - TzAkS. - 01.04.2012

you need dini.inc in pawno/include


Re: cannot read from file: "dini" - .FuneraL. - 02.04.2012

Quote:
Originally Posted by Scripter12345
Посмотреть сообщение
The title says it all


I have Dini.inc in my include folder but i am getting this error


Код:
fatal error 100: cannot read from file: "dini"

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


1 Error.
Please Help Me


Thank you
If you already have the INCLUDE, it may be outdated, update it to version 0.3d


Re: cannot read from file: "dini" - TzAkS. - 02.04.2012

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
If you already have the INCLUDE, it may be outdated, update it to version 0.3d
I don`t think that..if you have an include out of date you wil get warnings or errors,but not
fatal error 100: cannot read from file:
This is when the file is missing.


Re: cannot read from file: "dini" - Scripter12345 - 02.04.2012

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
If you already have the INCLUDE, it may be outdated, update it to version 0.3d
I have fixed the Dini.inc but now im getting these errors


Код:
error 017: undefined symbol "PInfo"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Please help me they are all on the same line and its the

Код:
PInfo[playerid][Logged] = 0;
Код:
public OnPlayerConnect(playerid)
{
    PInfo[playerid][Logged] = 0;
    PInfo[playerid][Regged] = 0;
    PInfo[playerid][Level] = 0;



Re: cannot read from file: "dini" - TzAkS. - 02.04.2012

You don`t have an enum for players data with PInfo.
Try PlayerInfo[playerid][Logged] = 0; or PlayerData
Or search for something that is for players like pLevel pAdmin and you will see what are you using


Re: cannot read from file: "dini" - ReneG - 02.04.2012

Show us your enum for the PInfo


Re: cannot read from file: "dini" - Scripter12345 - 02.04.2012

Код:
/* ENUMS */
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pSex,
    pAge,
   	Float:pPos_x,
	Float:pPos_y,
	Float:pPos_z,
	pSkin,
	pTeam,
	pAccent
	gPInfo
{
    Logged,
    Regged,
    Level
};
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Код:
PlayerInfo[ playerid ][ Logged ] = 0;
    PlayerInfo[ playerid ][ Regged ] = 0;
    PlayerInfo[ playerid ][ Level ] = 0;
    PlayerInfo[ playerid ][ pCash ] = 0;
    PlayerInfo[ playerid ][ pAdmin ] = 0;
    PlayerInfo[ playerid ][ pSex ] = 0;
    PlayerInfo[ playerid ][ pAge ] = 0;
    PlayerInfo[ playerid ][ pPos_x ] = 0.0;
    PlayerInfo[ playerid ][ pPos_y ] = 0.0;
    PlayerInfo[ playerid ][ pPos_z ] = 0.0;
    PlayerInfo[ playerid ][ pSkin ] = 0;
    PlayerInfo[ playerid ][ pTeam ] = 0;
    PlayerInfo[ playerid ][ pAccent ] = 0;
Error

Код:
(87) : error 001: expected token: "}", but found "-identifier-"
(141) : error 033: array must be indexed (variable "Logged")
(142) : error 017: undefined symbol "Regged"
(143) : error 017: undefined symbol "Level"



Re: cannot read from file: "dini" - TzAkS. - 02.04.2012

Код:
/* ENUMS */
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pSex,
    pAge,
    Float:pPos_x,
    Float:pPos_y,
    Float:pPos_z,
    pSkin,
    pTeam,
    pAccent
    Logged,
    Regged,
    Level
};
new PlayerInfo[MAX_PLAYERS][pInfo];
Or make another enum with gPinfo