30.09.2012, 03:03
Okay so it has been around an hour since I have been trying to fix this error. Guess I will post it here and see if anyone is able to help. It would be greatly appreciated. I am using y_ini (and yes, it is included).
Error: (I believe the first one is causing the rest of them.)
I also tried to find any other text matching with "INI", but everything I found is in this code...
EDIT: ****** didn't help either.
Error: (I believe the first one is causing the rest of them.)
Quote:
|
(100) : warning 221: label name "INI" shadows tag name (100) : error 017: undefined symbol "file" (101) : error 017: undefined symbol "file" (102) : error 017: undefined symbol "file" (100) : warning 203: symbol is never used: "INI" |
Код:
#include <YSI\y_ini> /* ... Stuff ...*/
public Register(playerid,inputtext[])
{
new filepath[128],pname[24];
GetPlayerName(playerid,pname,sizeof(pname));
format(filepath,sizeof(filepath),USERPATH,pname);
INI:myfile = INI_Open(filepath); // Error line
INI_WriteString(myfile, "password", inputtext);
INI_Close(myfile);
SendClientMessage(playerid,COLOR_GREEN,"You have been registered. Welcome to the server!");
return 1;
}


