Money
#1

Here is the code
PHP код:
 if(response)
            {
                if(!
strlen(inputtext)) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT,""COL_WHITE"Register",COL_RED"Invalid Password","Register","Close");
                new 
INI:File INI_Open(UserPath(playerid));
                
INI_SetTag(File,"data");
                
INI_WriteInt(File,"Password",udb_hash(inputtext));
                
INI_WriteInt(File,"Cash",10000);
                
INI_WriteInt(File,"Admin",0);
                
INI_WriteInt(File,"Kills",0);
                
INI_WriteInt(File,"Deaths",0);
                
INI_WriteInt(File,"Skin",0);
                
INI_Close(File);
                
ShowPlayerDialog(playeridDIALOG_SUCCESS_1DIALOG_STYLE_MSGBOX,""COL_WHITE"Success",""COL_GREEN"You have registerd successfully","Start","");
                
SpawnPlayer(playerid);
                
            } 
When the player register he must have 10,000 but when the player spawn i didn't give him the money i add
PHP код:
GivePlayerMoney(playeridPlayerInfo[playerid][pCash]); 
But i doesn't work !
Please Help.
Reply


Messages In This Thread
Money - by nezo2001 - 27.12.2014, 18:12
Re: Money - by LetsOWN[PL] - 27.12.2014, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)