SA-MP Forums Archive
Error messages when using Y_Ini - 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: Error messages when using Y_Ini (/showthread.php?tid=529930)



Error messages when using Y_Ini - Mennims - 04.08.2014

Ok, so I have been trying to fix this script, it's a login script but it had some issues, so I remade it with another one, this tutorial here https://sampforum.blast.hk/showthread.php?tid=352703 and when done I get these errors
Код:
E:\Program Files (x86)\Rockstar Games\GTA San Andreas\PAWN\pawno\dr2.pwn(469) : warning 213: tag mismatch
E:\Program Files (x86)\Rockstar Games\GTA San Andreas\PAWN\pawno\dr2.pwn(854) : error 001: expected token: "-string end-", but found "-identifier-"
E:\Program Files (x86)\Rockstar Games\GTA San Andreas\PAWN\pawno\dr2.pwn(854) : warning 215: expression has no effect
E:\Program Files (x86)\Rockstar Games\GTA San Andreas\PAWN\pawno\dr2.pwn(854) : error 001: expected token: ";", but found ")"
E:\Program Files (x86)\Rockstar Games\GTA San Andreas\PAWN\pawno\dr2.pwn(854) : error 029: invalid expression, assumed zero
E:\Program Files (x86)\Rockstar Games\GTA San Andreas\PAWN\pawno\dr2.pwn(854) : fatal error 107: too many error messages on one line
. I don't know what version of Y_Ini this is, but when I try any other version I get a shitload more errors. This is the only version that seems to give the least error. The previous login script was bugged but it compiled fine and saved fine. Any help here?
Here is line 854
Код:
	if(fexist(Path(playerid))) /* Check if the connected user is registered or not. fexist stands for file exist. So if file exist in the files(Path(playerid)),*/
	{// then
		INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid); //Will load user's data using INI_Parsefile.
		ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_INPUT,"Login","Welcome back. This account is registered. \nInsert your password to login to your account","Login","Quit");/*A dialog with input style will appear so you can insert your password to login.*/
	}



Respuesta: Error messages when using Y_Ini - Cepillado - 04.08.2014

Which of those lines is exactly the 854 line? Also, how did you define "Path"? My code is almost the same as yours and it doesn't give me any error.

Is the line 469 related to the error in any way?


Re: Error messages when using Y_Ini - Mennims - 05.08.2014

Line 469
<code> SetWorldTime(Map[Time]);</code>
No it isn't related. My path is defined
<code>#define UserPath "/ZMA/Users/%s.ini"</code>
It's so wierd, I'm confused, I've had so many issues with Y_Ini


Re: Error messages when using Y_Ini - Mennims - 05.08.2014

It's not my own, I'm quite honoured that ****** himself answered my question. I used a tutorial, I posted the link in my first post. I'm new to Y_Ini/YSI. But either way, I don't know what I'm doing wrong and how to fix it. Could someone also tell me how to fix that tag error?


Re: Error messages when using Y_Ini - Mennims - 05.08.2014

Umm so guys? No one has an answer? I have been trying to fix this but I can't seem to get anywhere...


Re: Error messages when using Y_Ini - Mennims - 06.08.2014

I really don't want to bump this... But I ask nicely that someone would help me with this


Re: Error messages when using Y_Ini - Mennims - 12.08.2014

Yes but I don't want to rewrite the whole login script! Can't I just fix the issue?


Re: Error messages when using Y_Ini - Stinged - 12.08.2014

Quote:
Originally Posted by Mennims
Посмотреть сообщение
Yes but I don't want to rewrite the whole login script! Can't I just fix the issue?
https://sampforum.blast.hk/showthread.php?tid=414141

Look at how simple it is.