[Tutorial] Login and Register System - Dialogs - Using Y_INI

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

Old thread, still working to this day, awesome!
Reply

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

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?
Reply

Do you have a_samp included?
Reply

nice its helpful
Reply

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

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

why the YSI could not connect ??
Reply

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

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

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;

Reply

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

replace this

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

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

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
Reply

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
Reply

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)