/login help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /login help (
/showthread.php?tid=83269)
/login help -
GTA967 - 24.06.2009
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
Re: /login help -
zallomallo - 24.06.2009
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.
Re: /login help -
GTA967 - 24.06.2009
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)