SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=604321)



Help - iCurse - 03.04.2016

PHP код:
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(131) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(131) : warning 215expression has no effect
C
:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(131) : error 001expected token";"but found "-string-"
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(131) : warning 215expression has no effect
C
:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(131) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\PC\Desktop\LGRP\gamemodes\LGRP.pwn(131) : fatal error 107too many error messages on one line 
PHP код:
public OnPlayerConnect(playerid)
{
    if(
fexist(UserPath(playerid)))
    {
        
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid);
        
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORD,""COLOR_GREY"Login"""COLOR_GREY"Type your password below.")
     }
     else
     {
        
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT,""COLOR_GREY"Registering..."""COLOR_GREY"Type your password below.")
     }
     return 
1;

PHP код:
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_SUCCESS_1 3
#define DIALOG_SUCCESS_2 4
#define PATH "Users\%s.ini" 
I don't understand ShowPlayerDialog that's why i had problem with it.


Re: Help - iCurse - 03.04.2016

Fixed.