SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 21/11/2013, 08:12 PM   #431
DownDuckling
Big Clucker
 
Join Date: Nov 2011
Location: Southern California
Posts: 82
Reputation: 2
Default Re: Login and Register System - Dialogs - Using Y_INI

How would I go about and make some admin commands? (Barely learning scripting :P) Thanks
__________________
Like a boss.
__________________________________________________ ____
My PC Specs: Intel Core i7 4790k @4.5
MOBO GIGABYTE Z97X-UD5H-BK
RAM Crucial Ballistix Sport 8 GB DDR3 RAM
GIGABYTE GTX 980 G1 Gaming
Case is a Corsair Vengeance C70 OD Green.
Damned H110 Broke Using a Hyper 212 EVO for now
__________________________________________________ ____
DownDuckling is offline   Reply With Quote
Old 22/11/2013, 08:32 PM   #432
Audi_Quattrix
Big Clucker
 
Join Date: Jul 2011
Location: Latvia
Posts: 142
Reputation: 4
Default Re: Login and Register System - Dialogs - Using Y_INI

You have lose identitation on line 306 remove the tab so its all in line to fix it
__________________






Audi_Quattrix is offline   Reply With Quote
Old 22/11/2013, 08:45 PM   #433
DanishHaq
High-roller
 
Join Date: Sep 2011
Location: Manchester, England, United Kingdom
Posts: 1,351
Reputation: 134
Default Re: Login and Register System - Dialogs - Using Y_INI

Quote:
Originally Posted by AnonScripter View Post
2 problems:
1. it's not necessary but why the player's password look like digits in the user file [Password = 104268307]

2. when an unregistered player join the server and click on "Quit" instead of entering a password and click on "Register", the server will kick him and the account will be save in users file even he didn't press on "Register"
So the problem is when he join the server another time, the server will ask him to login using a password. and he didn't enter a password on last time, he did "Quit" ..
1: that's what the hash stock does.
2: you must have a problem in your own code under OnDialogResponse or OnPlayerConnect where it will create the file even though no password etc. was entered.

Quote:
Originally Posted by DownDuckling View Post
How would I go about and make some admin commands? (Barely learning scripting :P) Thanks
There are tutorials of this nature.

Quote:
Originally Posted by Audi_Quattrix View Post
You have lose identitation on line 306 remove the tab so its all in line to fix it
Don't forget it's an old script, and that is a slight problem anyway :P.
DanishHaq is offline   Reply With Quote
Old 27/11/2013, 11:23 PM   #434
Hansrutger
Gangsta
 
Hansrutger's Avatar
 
Join Date: May 2011
Location: Sweden
Posts: 761
Reputation: 161
Default Re: Login and Register System - Dialogs - Using Y_INI

A quick question. I didn't understand exactly everything but still understand a bit.

How do I define another path because when I login and register, it tells me in my samp-server.exe that the file was not found and could not be created. How do I change
Code:
#define PATH "/Users/%s.ini"
to another direction? It got me confused as the backslash are not the same as the ordinary directive backslash, i.e. you use "C:\" and not "C:/". Anyways, could anyone explain?
Hansrutger is offline   Reply With Quote
Old 28/11/2013, 04:04 AM   #435
2KY
Gangsta
 
2KY's Avatar
 
Join Date: Jan 2012
Location: United States
Posts: 949
Reputation: 166
Default Re: Login and Register System - Dialogs - Using Y_INI

Quote:
Originally Posted by Hansrutger View Post
A quick question. I didn't understand exactly everything but still understand a bit.

How do I define another path because when I login and register, it tells me in my samp-server.exe that the file was not found and could not be created. How do I change
Code:
#define PATH "/Users/%s.ini"
to another direction? It got me confused as the backslash are not the same as the ordinary directive backslash, i.e. you use "C:\" and not "C:/". Anyways, could anyone explain?
You can only navigate inside of the scriptfiles directory.
__________________
Check out my wiki page
2KY is offline   Reply With Quote
Old 28/11/2013, 06:24 AM   #436
Hansrutger
Gangsta
 
Hansrutger's Avatar
 
Join Date: May 2011
Location: Sweden
Posts: 761
Reputation: 161
Default Re: Login and Register System - Dialogs - Using Y_INI

Thanks Sky, you're the best!
Hansrutger is offline   Reply With Quote
Old 25/12/2013, 04:16 PM   #437
Edu4rd
Big Clucker
 
Join Date: Oct 2013
Posts: 76
Reputation: 2
Default Re: Login and Register System - Dialogs - Using Y_INI

Nice xD
Edu4rd is offline   Reply With Quote
Old 24/01/2014, 10:20 PM   #438
SkyLe
Little Clucker
 
Join Date: Jun 2011
Location: Denmark
Posts: 5
Reputation: 0
Default Re: Login and Register System - Dialogs - Using Y_INI

Guys I still got problems with compiling the pwn:

fatal error 100: cannot read from file: "YSI\y_ini"

I have opened the pawno.exe in the correct folder and after that, opened my script
I have remembered the correct "\" in the #include

Tried to look it up on other posts, but can't seem to find the problem - really annoying using 2 hours on a single line
SkyLe is offline   Reply With Quote
Old 08/02/2014, 10:15 AM   #439
Rudiz
Little Clucker
 
Rudiz's Avatar
 
Join Date: Jan 2014
Location: Loading.. #404 Not Found
Posts: 15
Reputation: 0
Default Re: Login and Register System - Dialogs - Using Y_INI

Is there any chance to impose... choice of skins for the player after the register?
__________________
Rudiz is offline   Reply With Quote
Old 26/02/2014, 09:58 AM   #440
Extraordinariness
Big Clucker
 
Join Date: Feb 2014
Posts: 102
Reputation: 1
Default Re: Login and Register System - Dialogs - Using Y_INI

C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(116) : error 017: undefined symbol "UserPath"
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(11 : error 017: undefined symbol "UserPath"
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(119) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(119) : error 017: undefined symbol "COL_WHITE"
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(119) : warning 215: expression has no effect
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(119) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(119) : fatal error 107: too many error messages on one line

I get these errors
Extraordinariness is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] Login & Register system - dialogs - with y_ini Seven_of_Nine Tutorials 30 01/11/2018 10:54 AM
[FilterScript] [FS] ERegLog ( Advanced Register/Login System [Dialogs] ) aircombat Filterscripts 29 09/11/2014 09:30 PM
[Tutorial] Login and Register System - Dialogs - Using SII Kush Tutorials 69 02/07/2013 05:19 PM
[FilterScript] Register/login system (Dini, dialogs) pantelimonfl Filterscripts 6 08/03/2011 04:13 PM


All times are GMT. The time now is 10:17 AM.


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