Error 001 - 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 001 (
/showthread.php?tid=404865)
Error 001 -
Affan - 04.01.2013
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.
Re: Error 001 -
aslan890 - 04.01.2013
Put this :
Код:
#define PATH "/users/%s.ini"
Re: Error 001 -
Affan - 04.01.2013
@aslan: Thanks +rep for u
Re: Error 001 -
aslan890 - 04.01.2013
Quote:
Originally Posted by Affan
@aslan: Thanks +rep for u
|
You don't have to!