A problem. :/
#1

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.
Reply
#2

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");
    }
Reply
#3

Really? You could of just PM'ed him asking how he did it. It's just [pawn ] [/pawn] without the spaces;
pawn Код:
Test
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)