Show different textdraw if player is registered
#9

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Hold up, so you don't understand how the process of the login/register system works?

When you connect, it checks for the userfile, and from there it shows the register or the login system based upon that.

What more do you need explained in this instance?


If you are simply trying to copy other peoples functions from their servers, maybe you need to start off with something a little more basic if you think this is completely different.


The 'system' which he gave, wasn't even a working example, and really, he shouldn't have even given it to you, as it's obviously not a good example. I really hope you didn't +rep him for that shitty example.
I know how register/login system works, lmao. There is other problem, like example i made textdraws in OnPlayerConnect callback and show it with stock
Код:
CreatePlayerLoginTextDraws(playerid);
Код:
ShowLoginTextDraws(playerid);
so as you know if player is connecting textdraws will show up, example
Код:
Register[playerid][4] = CreatePlayerTextDraw(playerid, 300.333374, 175.881469, "Register");
and i want to change this textdraw to login if he's already have account
Код:
Register[playerid][4] = CreatePlayerTextDraw(playerid, 300.333374, 175.881469, "Login");
i saw how ppl use systems like this to do that.
Example
Код:
stock PlayerIsRegistered(playerid)
{
  pRegistered[playerid] = true;
  PlayerTextDrawSetString(playerid, PlayerLoginTextDraw[playerid][0], !"      Login"); 
}

stock PlayerIsNotRegistered(playerid)
{
  pRegistered[playerid] = false;
  PlayerTextDrawSetString(playerid, PlayerLoginTextDraw[playerid][0], !"   Register");
}
But i dont rly know right way to do that. I made somethin' like this but the result was textdraw didn't change.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)