/login help
#1

ok i manged to complete the admin script tutorial but now i got a lilttle problem /login is working it says im not registered when i have but if you /register it auto logs you in with
here is my current admin script http://pastebin.com/m480837bd maby you script masters can help spot the problem
Reply
#2

I'm gonna go ahead and guess it is this:
pawn Код:
else if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)       SendClientMessage(playerid,COLOUR_ORANGE,"You`re acount has been found. Please /login to continue.");
  gPlayerInfo[playerid][PLAYER_REGGED]             = 0;
    return 1;
}
That's basically saying if they connect and are registered, to set them as unregistered, which doesn't make sense.
Reply
#3

so set
Код:
 gPlayerInfo[playerid][PLAYER_REGGED]             = 1;
but now it sets me as registered when i havn`t (im a scripting nub so explain in detail)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)