Error 001
#1

Error:
pawn Код:
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\reglog.pwn(258) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\reglog.pwn(258) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\reglog.pwn(258) : error 001: expected token: ";", but found ")"
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\reglog.pwn(258) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\reglog.pwn(258) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Line 258:
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
Full command of that line:

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(IsBeingSpeced[playerid] == 1)
{
foreach(Player,i)
{
if(spectatorid[i] == playerid)
{
TogglePlayerSpectating(i,false);
}
}
}
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"VIP",Vip[playerid]);
INI_Close(File);
if(IsPlayerConnected(playerid)) {
IsLogged[playerid] = false;
}
return 1;
}
Thanks.
Reply
#2

Put this :
Код:
#define PATH "/users/%s.ini"
Reply
#3

@aslan: Thanks +rep for u
Reply
#4

Quote:
Originally Posted by Affan
Посмотреть сообщение
@aslan: Thanks +rep for u
You don't have to!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)