SA-MP Forums Archive
Hello, in need of help with y_ini - 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: Hello, in need of help with y_ini (/showthread.php?tid=604174)



Hello, in need of help with y_ini - Razor_Sebi - 01.04.2016

I got this errors:

C:\Users\Computer\Desktop\New folder\gamemodes\WGRP.pwn(143) : error 001: expected token: ",", but found ";"
C:\Users\Computer\Desktop\New folder\gamemodes\WGRP.pwn(143) : error 036: empty statement
C:\Users\Computer\Desktop\New folder\gamemodes\WGRP.pwn(143) : warning 215: expression has no effect
C:\Users\Computer\Desktop\New folder\gamemodes\WGRP.pwn(143) : error 001: expected token: ";", but found ")"
C:\Users\Computer\Desktop\New folder\gamemodes\WGRP.pwn(143) : fatal error 107: too many error messages on one line

on this script part:

public OnPlayerConnect(playerid)

{

if (fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE" Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""C OL_WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}


Its not my code tho. So i got so tired of that error, i tried to find a way to make it work but nothing makes it work.

Thanks for help!


Re: Hello, in need of help with y_ini - introzen - 01.04.2016

Код:
public OnPlayerConnect(playerid)

{

if (fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login"," Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Registering...","Type your password below to register a new account.","Register","Quit");
}
return 1;
}