SA-MP Forums Archive
[Tutorial] Login and Register System - Dialogs - Using 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Login and Register System - Dialogs - Using Y_INI (/showthread.php?tid=273088)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


Re: Login and Register System - Dialogs - Using Y_INI - dopeboy1040 - 09.05.2017

This Script is Awesome I Like This And Work Thanks U soo Much


Re: Login and Register System - Dialogs - Using Y_INI - DomagojSellug - 14.06.2017

Old thread, still working to this day, awesome!


Re: Login and Register System - Dialogs - Using Y_INI - KushalD - 27.08.2017

Awesome job.. It is helping me to learn Scripting faster.


Re: Login and Register System - Dialogs - Using Y_INI - KushalD - 27.08.2017

I am doing this in Grandlarc gamemode and i got some warnings and errors:


Quote:

C:\Users\Kushal's\Desktop\My Server\pawno\include\YSI\..\YSI_Internal\y_funcinc .inc(72) : error 017: undefined symbol "printf"
C:\Users\Kushal's\Desktop\My Server\pawno\include\YSI\..\YSI_Internal\y_funcinc .inc(72) : warning 215: expression has no effect
C:\Users\Kushal's\Desktop\My Server\pawno\include\YSI\..\YSI_Internal\y_funcinc .inc(72) : error 001: expected token: ";", but found ")"
C:\Users\Kushal's\Desktop\My Server\pawno\include\YSI\..\YSI_Internal\y_funcinc .inc(72) : error 029: invalid expression, assumed zero
C:\Users\Kushal's\Desktop\My Server\pawno\include\YSI\..\YSI_Internal\y_funcinc .inc(72) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Please someone help me?


Re: Login and Register System - Dialogs - Using Y_INI - Misiur - 27.08.2017

Do you have a_samp included?


Re: Login and Register System - Dialogs - Using Y_INI - hadyzeeneldin - 09.09.2017

nice its helpful


Re: Login and Register System - Dialogs - Using Y_INI - Nardo - 09.12.2017

In which includes folder shall I put the YSI folder? I have one includes folder in the main folder of my server and I have another one in my pawno folder. Sorry for the probably dumb question.


Re: Login and Register System - Dialogs - Using Y_INI - Tass007 - 13.12.2017

Quote:
Originally Posted by Nardo
View Post
In which includes folder shall I put the YSI folder? I have one includes folder in the main folder of my server and I have another one in my pawno folder. Sorry for the probably dumb question.
Put it in your SA-MP Server Directory within the folder of Pawno. For example. C:\Program Files(x86)\Rockstar Games\SA-MP Server\pawno\include

Then put the YSI folder in that include folder. You should see a few other includes for example a_samp.inc, a_http.inc.


Re: Login and Register System - Dialogs - Using Y_INI - Imbalo - 31.12.2017

why the YSI could not connect ??


Re: Login and Register System - Dialogs - Using Y_INI - Divyanshu - 20.03.2018

How to download i cant download YSI form github it only show video


Re: Login and Register System - Dialogs - Using Y_INI - GeorgeLimit - 16.04.2018

How to set player score in game and Admin level in game?


Re: Login and Register System - Dialogs - Using Y_INI - ProScripter - 16.04.2018

Quote:
Originally Posted by GeorgeLimit
View Post
How to set player score in game and Admin level in game?
that is only login/register system not admin system
but here you can use this commands for your server to set yourself admin okaY.
PHP Code:
CMD:setadmin(playeridparams[])
{
 new 
idlevelname[25], gname[25];
 if(
sscanf(params"dd"idlevel)) return SendClientMessage(playerid0xFF000050"Usage: /setadmin [playerid] [level]");
 if(
level || level 0) return SendClientMessage(playerid0xFF000050"Invalid Admin Level.");
 if(!
IsPlayerConnected(id)) return SendClientMessage(playerid0xFF000050"Player isnot connected");
 
GetPlayerName(playeridnamesizeof(name));
 
GetPlayerName(idgnamesizeof(gname));
 
PlayerInfo[id][pAdmin] = level;
 
format(stringsizeof(string), "%s have setted you as %d level admin"namelevel);
 
SendClientMessage(id0xFF0000AAstring);
 
format(stringsizeof(string), "You have setted %s as %d level admin"gnamelevel);
 
SendClientMessage(playerid0xFF0000AAstring);
 return 
1;
}
CMD:setscore(playeridparams[])
{
 new 
idscorename[25], gname[25];
 if(
sscanf(params"dd"idscore)) return SendClientMessage(playerid0xFF000050"Usage: /setscore [playerid] [score]");
 if(
score 9999999 || score 0) return SendClientMessage(playerid0xFF000050"Invalid Scores.");
 if(!
IsPlayerConnected(id)) return SendClientMessage(playerid0xFF000050"Player isnot connected");
 
GetPlayerName(playeridnamesizeof(name));
 
GetPlayerName(idgnamesizeof(gname));
 
SetPlayerScore(idscore);
 
format(stringsizeof(string), "%s have setted your score to %d."namescore);
 
SendClientMessage(id0xFF0000AAstring);
 
format(stringsizeof(string), "You have setted %s scores to %d."gnamescore);
 
SendClientMessage(playerid0xFF0000AAstring);
 return 
1;




Re: Login and Register System - Dialogs - Using Y_INI - PlayHard - 04.05.2018

Quote:
Originally Posted by Mitchyjones
View Post
Still waiting ^
Same here dear


Re: Login and Register System - Dialogs - Using Y_INI - CrystalGamer - 04.05.2018

replace this

PHP Code:
//////onplayerconnect///
LoadUser_%s
to 
LoadUser_data 



Re: Login and Register System - Dialogs - Using Y_INI - KamilPolska - 22.09.2018

How to do it without hash?
E.g. Enter the password: 123456 and you must save the password 123456


Re: Login and Register System - Dialogs - Using Y_INI - v1k1nG - 22.09.2018

Quote:
Originally Posted by KamilPolska
View Post
How to do it without hash?
E.g. Enter the password: 123456 and you must save the password 123456
Please never do it


Re: Login and Register System - Dialogs - Using Y_INI - Susenkus - 13.03.2019

Can someone help pls, how do do it that instead displaying actual pass it will display ****** you what i mean
and how to save weapons


Re: Login and Register System - Dialogs - Using Y_INI - Awkward - 20.06.2019

Great tutorial!

But since I'm quite new to all this stuff..
Could you explain how I can save player skin, position, vehicles etc ?
I don't understand in wich part of the code it saves stuff.


Re: Login and Register System - Dialogs - Using Y_INI - Nitrofuel786 - 21.06.2019

It doesnt save anything in my INI file. Where do I have to put step 7 and 8 in?


Re: Login and Register System - Dialogs - Using Y_INI - oghabanjb - 22.06.2019

Quote:
Originally Posted by Nitrofuel786
View Post
It doesnt save anything in my INI file. Where do I have to put step 7 and 8 in?
Anywhere of your code. Just don't put it in public, stock and plain functions.