New Life RolePlay
#1

I'm using New Life RolePlay GameMode, and there isn't working registration, noone can register and dont have scriptfiles. Maybe someone have some updated gamemode pwn file?
Reply
#2

Noone got this GM?
Reply
#3

Quote:
Originally Posted by FaZeRs
View Post
Noone got this GM?
I guess no-on, but you could show us the register/login system, we might be able to see the problem
Reply
#4

PHP Code:
    if(RegistrationStep[playerid] > 0)
    {
        if(
RegistrationStep[playerid] == 1)
        {
            if (
strcmp("male"texttrue) == 0)
            {
                
SetPlayerPos(playerid,1830.803,-1731.561,5203.459);
                
PlayerInfo[playerid][pSex] = 1;
                
SendClientMessageEx(playeridCOLOR_PURPLE"** Immigration writes your gender on a paper **");
                
SendClientMessageEx(playeridCOLOR_WHITE"[IMMIGRATION] When were you born? (Use dd/mm/yyyy)");
                
RegistrationStep[playerid] = 2;
                return 
0;
            }
            else if (
strcmp("female"texttrue) == 0)
            {
                
SetPlayerPos(playerid,1830.803,-1731.561,5203.459);
                
PlayerInfo[playerid][pSex] = 2;
                
SendClientMessageEx(playeridCOLOR_PURPLE"** Immigration writes your gender on a paper **");
                
SendClientMessageEx(playeridCOLOR_WHITE"[IMMIGRATION] When were you born? (Use dd/mm/yyyy)");
                
RegistrationStep[playerid] = 2;
                return 
0;
            }
            else
            {
                   
SendClientMessageEx(playeridCOLOR_LIGHTRED"____________________________________________________");
                
SendClientMessageEx(playeridCOLOR_REALRED"ERROR: You did not type in either 'male' or 'female'");
                
SendClientMessageEx(playeridCOLOR_WHITE"[IMMIGRATION] Are you a male or female?");
                
SendClientMessageEx(playeridCOLOR_LIGHTRED"____________________________________________________");
            }
            return 
0;
        }
        else if(
RegistrationStep[playerid] == 2)
        {
            new 
yearmonth,day;
            
getdate(yearmonthday);
            new 
DateInfo[3][20];
            
splits(textDateInfo'/');
            if(
year strval(DateInfo[2]) > 100 || strval(DateInfo[2]) < || strval(DateInfo[2]) >= year)
            {
                
SendClientMessageEx(playeridCOLOR_LIGHTRED"____________________________________________________");
                
SendClientMessageEx(playeridCOLOR_REALRED"ERROR: Fix Your Date of Birth");
                
SendClientMessageEx(playeridCOLOR_WHITE"[IMMIGRATION] When were you born? (Use dd/mm/yyyy)");
                
SendClientMessageEx(playeridCOLOR_LIGHTRED"____________________________________________________");
                return 
0;
            }
            new 
check year strval(DateInfo[2]);
            if(
check == year)
            {
                
SendClientMessageEx(playeridCOLOR_LIGHTRED"____________________________________________________");
                
SendClientMessageEx(playeridCOLOR_REALRED"ERROR: Wrong Date of Birth Format");
                
SendClientMessageEx(playeridCOLOR_WHITE"[IMMIGRATION] When were you born? (Use dd/mm/yyyy)");
                
SendClientMessageEx(playeridCOLOR_LIGHTRED"____________________________________________________");
                return 
0;
            }
            if(
strval(DateInfo[1]) > month)
            {
                
check -= 1;
            }
            else if(
strval(DateInfo[1]) == month && strval(DateInfo[0]) > day)
            {
                
check -= 1;
            }
            
PlayerInfo[playerid][pAge] = check;
            
PlayerInfo[playerid][pOrigin] = 0;
            
ClearChatbox(playerid);
        
//    format(string, sizeof(string), "Ok, so you are %d year old.",PlayerInfo[playerid][pAge]);
        //    SendClientMessageEx(playerid, COLOR_YELLOW2, string);

            
return 0;
        }
        return 
0;
    } 
Here it is
Reply
#5

Fixed, can close this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)