YSI problem
#1

Ok it worked now i got these errors:
Код:
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(169) : error 017: undefined symbol "UserPath"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(944) : error 010: invalid function or declaration
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(946) : error 010: invalid function or declaration
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(948) : error 021: symbol already defined: "INI_ParseFile"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(948) : error 017: undefined symbol "playerid"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(948) : error 010: invalid function or declaration
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(948 -- 951) : fatal error 107: too many error messages on one line

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


7 Errors.
And why now the Pawno Compiler Output is slow ?
Reply
#2

Open the file from pawno.exe not by clicking on it, then compile, also make sure you have y_ini in YSI folder.
Reply
#3

Ok it worked now i got these errors:
Код:
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(169) : error 017: undefined symbol "UserPath"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(944) : error 010: invalid function or declaration
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(946) : error 010: invalid function or declaration
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(948) : error 021: symbol already defined: "INI_ParseFile"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(948) : error 017: undefined symbol "playerid"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(948) : error 010: invalid function or declaration
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(948 -- 951) : fatal error 107: too many error messages on one line

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


7 Errors.
And why now the Pawno Compiler Output is slow ?
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=427076

You don't need to create two topics for the same problem!

And copy in the lines of code which are giving those errors.

The PAWN compiler is now slow because when you include 'y_ini' it's also including a lot of other libraries within YSI to help y_ini work.
Reply
#5

Those errors are from your script, show the lines.
Reply
#6

Код:
    new INI:File = INI_Open(UserPath(playerid)); //169
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_Close(File);
Код:
return 1; //944
{
	if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
    }
	return 1;
}
Reply
#7

****** it: samp y_ini tutorial
Read the tutorial and follow what the author does and VOILA! All of the errors you got will be solved.
Reply
#8

Include the whole code including the callback it's within.

Also surround your code with PAWN tags.
Reply
#9

Sry for double post.
Reply
#10

Guys I can't understand what your saying .

Look i copied with script from here: https://sampforum.blast.hk/showthread.php?tid=352703

And got these errors:

Код:
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_hooks/impl.inc(225) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_inline.inc(260) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_inline.inc(678) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_ini.inc(837) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_ini.inc(957) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_ini.inc(1030) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_ini.inc(1051) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_ini.inc(1070) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_ini.inc(1092) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_ini.inc(1124) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_ini.inc(1160) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_ini.inc(1188) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\cla\Desktop\SAMP\samp03x_svr_R1-2_win32 (1)\pawno\include\YSI\y_ini.inc(1344) : warning 219: local variable "name" shadows a variable at a preceding level
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(172) : warning 219: local variable "name" shadows a variable at a preceding level
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(312) : error 017: undefined symbol "killerid"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(313) : error 017: undefined symbol "playerid"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(947) : error 055: start of function body without function header
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(949) : error 021: symbol already defined: "GetPlayerName"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(950) : error 010: invalid function or declaration
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(952) : error 021: symbol already defined: "INI_ParseFile"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(952) : error 017: undefined symbol "playerid"
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(952) : error 010: invalid function or declaration
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(952 -- 955) : fatal error 107: too many error messages on one line

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


9 Errors.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)