SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Tutorials (https://forum.sa-mp.com/forumdisplay.php?f=70)
-   -   [Tutorial] Login and Register System - Dialogs - Using Y_INI (https://forum.sa-mp.com/showthread.php?t=273088)

Kush 18/08/2011 11:55 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
Quote:

Originally Posted by ElieJabbour (Post 1355523)
And you call yourself, a bad scripter..

Great Job, Man :)

Thanks man :)

0_o 19/08/2011 06:11 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
Quote:

Originally Posted by Kush (Post 1355480)
I haven't received about the full download having an issue. I hope you haven't altered any code within the script.

Well I Didn't Did Anything. Just Ran The samp-server And It Doesn't Work.

Shockey HD 19/08/2011 06:21 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
Quote:

Originally Posted by 0_o (Post 1356874)
Well I Didn't Did Anything. Just Ran The samp-server And It Doesn't Work.

Seems very odd, make sure you have all the Y_INI Files and have the correct folders in the correct places!

Wesley221 20/08/2011 01:21 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
How would i load a string into a variable?
With an integer you do it like "INI_Int();", and with a string ?
I tried INI_String();, but then i get the error Undefined symbol INI_String();
Thanks!

Kush 20/08/2011 01:44 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
Quote:

Originally Posted by Wesley221 (Post 1358136)
How would i load a string into a variable?
With an integer you do it like "INI_Int();", and with a string ?
I tried INI_String();, but then i get the error Undefined symbol INI_String();
Thanks!

I assume it works the same way as the way the password is stored. Though I've never worked around issues with loading strings.

Admigo 20/08/2011 02:14 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
Why if admin is ingame the other players are admin?

Kush 20/08/2011 02:27 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
What do you mean "other player are admins". If you're saying that other people can execute administrative commands, then it's your code.

Place this code within you script, create a new account and test it.

PHP Code:

YCMD:test(playeridparams[], help)
{
    
#pragma unused help
    #pragma unused test
    
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1"You are not an Admin!");
    
SendClientMessage(playerid, -1"You are indeed an Admin!");
    return 
1;



Wesley221 20/08/2011 02:36 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
Quote:

Originally Posted by Kush (Post 1358178)
I assume it works the same way as the way the password is stored. Though I've never worked around issues with loading strings.

Because im trying to load a whirlpool hashed password, and since it also contains some letters, its an string. Think imma ask it in the y_ini topic then
Great tutorial btw :)

Kush 20/08/2011 03:02 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
Quote:

Originally Posted by Wesley221 (Post 1358253)
Because im trying to load a whirlpool hashed password, and since it also contains some letters, its an string. Think imma ask it in the y_ini topic then
Great tutorial btw :)

Thanks but yea, it would work the same way.

Henkie 26/08/2011 06:58 AM

Re: Login and Register System - Dialogs - Using Y_INI
 
It doesnt save my cash when i use /q.
The code is under the onplayerdisconnect function.
What to do?


All times are GMT. The time now is 08:45 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.