15.03.2013, 15:49
(
Последний раз редактировалось burnfire; 15.03.2013 в 16:26.
Причина: Asa
)
Hello again!Sorry for multiple posting,but I have another problem :@
I using YSI:INI include for my AdminScript,but the data isn't writing :@
THE CODE OF REGISTER DIALOG AND public OnDialogResponse vvv
I using YSI:INI include for my AdminScript,but the data isn't writing :@
THE CODE OF REGISTER DIALOG AND public OnDialogResponse vvv
Код:
if(!INI_Exist(file)) {ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"Register","Te rugam sa te inregistrezi mai jos","Register","Kick");SendClientMessage(playerid,0x66FF00FF,"Bine ai venit pe GTA.Know.RO!Te rugam sa te inregistrezi mai jos!");}/*Dialog*/
Код:
if(dialogid == 0) { if(response) { new password = inputtext[128]; new string[128]; INI_Open(file); INI_WriteString(file,"Parola",password); new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,"pName",sizeof(pName)); INI_WriteString(file,"Nume",pName); INI_WriteInt("Level",PInfo[playerid][level]); INI_WriteInt("Cash",PInfo[playerid][cash]); INI_WriteInt("Coins",PInfo[playerid][coins]); INI_WriteInt("Score",PInfo[playerid][score]); SendClientMessage(playerid,0x66FF00FF,"Te-ai inregistrat cu succes!!!"); format(string,128,"Te-ai inregistrat cu succes %s cu parola %s !!!",pName,password); SendClientMessage(playerid,0x66FF00FF,string); } else { SendClientMessage(playerid,0xFF0000FF,"Nu te-ai inregistrat!Ai primit KICK!!!"); Kick(playerid); } }/*OnDialogResponse script*/