A problem. :/ - 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: A problem. :/ (
/showthread.php?tid=447534)
A problem. :/ -
LeeXian99 - 30.06.2013
Hey guys, I'm scripting something randomly, but I found this is correct, but it shows me, it is wrong. :/
Code:
pawn Код:
if(fexist(Path(playerid))) << This line
{
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_PASSWORD,"Login","Welcome back. This account is registered. \nInsert your password to login to your account","Login","Quit");
}
Errors:
Код:
C:\Documents and Settings\Xian99\Desktop\*\Script\admin\xian's admin.pwn(90) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Xian99\Desktop\*\Script\admin\xian's admin.pwn(90) : warning 215: expression has no effect
C:\Documents and Settings\Xian99\Desktop\*\Script\admin\xian's admin.pwn(90) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Xian99\Desktop\*\Script\admin\xian's admin.pwn(90) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Xian99\Desktop\*\Script\admin\xian's admin.pwn(90) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: A problem. :/ -
Maime - 30.06.2013
pawn Код:
if(fexist(Path(playerid))); << In this line Try this
{
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_PASSWORD,"Login","Welcome back. This account is registered. \nInsert your password to login to your account","Login","Quit");
}
Re: A problem. :/ -
Luis- - 30.06.2013
Really? You could of just PM'ed him asking how he did it. It's just [pawn ] [/pawn] without the spaces;
Re: A problem. :/ -
IceBilizard - 30.06.2013
try this
pawn Код:
if(fexist(Path(playerid)))
{
INI_ParseFile(Path(playerid),"loadaccount_user", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_PASSWORD,"Login","Welcome back. This account is registered. \nInsert your password to login to your account","Login","Quit");
}
EDIT:
Did you coping your code from here?
https://sampforum.blast.hk/showthread.php?tid=359557
If you are coping then make sure you copied all correct code