how would i save this?
#12

sorry need to bump also heres my register & login code


Код:
dcmd_register(playerid,params[]) {

    if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"{F81414}Your Already Registered!");
    if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"{F81414}Your Registered But Not Logged In Type /login [password]");
    if (strlen(params)==0) return SystemMsg(playerid,"{F81414}USAGE: /register [password]");
    if (udb_Create(PlayerName(playerid),params))
	{
	SystemMsg(playerid,"{6EF83C}Account Created! Now Use /login [password] To Login.");
	}
    return true;

 }

  dcmd_login(playerid,params[]) {

    if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"Your Already Logged In!");
    if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"You Do Not Have An Account, Please /register [password]");
    if (strlen(params)==0) return SystemMsg(playerid,"USAGE: /login [password]");
    if (udb_CheckLogin(PlayerName(playerid),params)) {
       SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("score"));
  	   SetPlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money"));
       PLAYERLIST_authed[playerid]=true;
   	   registerspawn[playerid] = 1;
	   SystemMsg(playerid,"{6EF83C}Thank you For Logging In Have Fun!");
	   loginspeak[playerid] = 1;

       return 1;
    }
    return SystemMsg(playerid,"{F81414}ERROR : Incorrect Password");
}
all i want is it to save their vip=theirlevel

because in the gamemode it sets it to 0 so i want it to save as - vip=0

and when they login it sets their vip to - whatever their vip=?

is

thanks
Reply


Messages In This Thread
how would i save this? - by Lethaal - 22.02.2011, 17:07
Re: how would i save this? - by Anteino - 22.02.2011, 17:15
Re: how would i save this? - by Lethaal - 22.02.2011, 17:17
Re: how would i save this? - by maramizo - 22.02.2011, 17:20
Re: how would i save this? - by Lethaal - 22.02.2011, 17:23
Re: how would i save this? - by maramizo - 22.02.2011, 17:28
Re: how would i save this? - by Lethaal - 22.02.2011, 17:51
Re: how would i save this? - by maramizo - 22.02.2011, 18:14
Re: how would i save this? - by Lethaal - 22.02.2011, 18:46
Re: how would i save this? - by maramizo - 22.02.2011, 18:58
Re: how would i save this? - by Lethaal - 22.02.2011, 19:30
Re: how would i save this? - by Lethaal - 23.02.2011, 08:13
Re: how would i save this? - by Lethaal - 23.02.2011, 12:45
Re: how would i save this? - by MadeMan - 23.02.2011, 12:49
Re: how would i save this? - by Lethaal - 23.02.2011, 12:51
Re: how would i save this? - by [$A$]W33D$P33D - 22.04.2011, 15:08

Forum Jump:


Users browsing this thread: 10 Guest(s)