Register - Question
#1

hi i got a question why in play account in scriptfiles i have this at registered..it should appear that last date i logged in account..but i dont understand..

PHP код:
RegistredDate=53 
Reply
#2

How do you expect us to help you without any code? You expect us to hack into your computer and see it for ourselves?

Common sense goes a long way.
Reply
#3

You may be saving a string as an integer or vice-versa.
Reply
#4

thumbs up
Reply
#5

HERE:
PHP код:
                         //onplayerconnect
         
PlayerInfo[playerid][pPainPerk] = 0;
                    
PlayerInfo[playerid][pTraderPerk] = 0;
                    
PlayerInfo[playerid][pTut] = 0;
                    
strmid(PlayerInfo[playerid][pRegistredDate], "Never"0strlen ("None"), 255);
                    
PlayerInfo[playerid][pMissionNr] = 0;
                    
PlayerInfo[playerid][pWarns] = 0;
                    
PlayerInfo[playerid][pFuel] = 1;
                                                                
// 
NEXT:

PHP код:
//                        if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
                            
strmid(PlayerInfo[playerid][pRegistredDate],dini_Get(string2,"RegistredDate"),0,strlen(dini_Get(string2,"RegistredDate")),255);
                            if( 
strcmpkey "Mission" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMissionNr] = strvalval ); }
// 

LOGIN:
PHP код:
if(PlayerInfo[playerid][pReg] == 0)
                    {
                    
PlayerInfo[playerid][pLevel] = 1;
                    
PlayerInfo[playerid][pSHealth] = 0.0;
                    
PlayerInfo[playerid][pHealth] = 50.0;
                    
PlayerInfo[playerid][pPos_x] = 2246.6;
                    
PlayerInfo[playerid][pPos_y] = -1161.9;
                    
PlayerInfo[playerid][pPos_z] = 1029.7;
                    
PlayerInfo[playerid][pInt] = 15;
                    
PlayerInfo[playerid][pLocal] = 255;
                    
PlayerInfo[playerid][pTeam] = 3;
                    
PlayerInfo[playerid][pModel] = 48;
                    new 
randphone 1000 random(8999);//minimum 1000  max 9999 //giving one at the start
                    
PlayerInfo[playerid][pPnumber] = randphone;
                    
PlayerInfo[playerid][pPhousekey] = 255;
                    
PlayerInfo[playerid][pPbiskey] = 255;
                    
PlayerInfo[playerid][pAccount] = 50000;
                    
PlayerInfo[playerid][pReg] = 1;
                    
GivePlayerCash(playerid5000);
                    new 
d,m,y;
                    new 
h,mi,s;
                    
getdate(y,m,d);
                    
gettime(h,mi,s);
                    
format(string,sizeof(string),  "%d/%d/%d at %d:%d:%d",d,m,y,h,mi,s);
                    
strmid(PlayerInfo[playerid][pRegistredDate], string0strlen(string), 255); 
Reply
#6

BUMP sorry i forgot i posted..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)