Using y_uvar and y_users, need help with that.
#1

Hey guys, I am building this complete YSI mode.
I am unsure on how to check if a player is registered or not, since YSI uses UID for file names, not user names, so files look like "000001.ini" and not "Name.ini".
I tried !fexist - format(st, size, "\YSI\users\%d.ini", Get_YID(playerid) );
and something like that to check if he is registered and then using the response to Player_Try(Login/Register) but I knew all along it's wrong.
Can someone direct me in the correct direction? (preferably ******)?
Reply
#2

There is a function Player_IsRegistered(playerid) also if your interested I've re-written the /login and /register commands into dialogs.
Reply
#3

Ah, then it's a piece of cake ! Just check if Player is registered and show the required dialog ! Also, I am curious, why is it Player_TryRegister? It wouldn't fail registering with ''wrong pass'', would it? Or is it for say, wrong strlen?
Reply
#4

****** could probably explain that that better than me, anyways try out these functions.

Implements a dialog login/register and changepass command you still need to call them though.

http://pastebin.com/GUjiDS8b
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)