String not Saving? y_ini | Rep++ -
Mr.Faqahat - 08.11.2013
PHP код:
if(dialogid == Dialog_37)
{
if(response)
{
new name[24];
GetPlayerName(playerid, name, sizeof(name));
SendClientMessage(playerid, 0xFFFF00AA, "Thanks for finishing this operation the Email should be sent!");
printf("%s has completed his registration! %s ", name, inputtext);
format(Jfile, 100, ACCOUNTS_PATH, GetName(playerid));
new INI:ACCOUNT = INI_Open(Jfile);
INI_WriteString(ACCOUNT, "Email", inputtext);
}
Whats the mistake im new to y_ini its actually not saving the string
Re: String not Saving? y_ini -
Tagathron - 08.11.2013
Try setting an tag to write to first.
Код:
INI_SetTag(File which you're setting tag to, Tag name);
Re: String not Saving? y_ini -
Mr.Faqahat - 08.11.2013
Quote:
Originally Posted by Tagathron
Try setting an tag to write to first.
Код:
INI_SetTag(File which you're setting tag to, Tag name);
|
Nop didnt worked
Re: String not Saving? y_ini -
Mr.Faqahat - 09.11.2013
Help?
Re: String not Saving? y_ini -
DobbysGamertag - 09.11.2013
Have you attempted to format a string before inserting it?
pawn Код:
new name[24],string[100];
GetPlayerName(playerid, name, sizeof(name));
SendClientMessage(playerid, 0xFFFF00AA, "Thanks for finishing this operation the Email should be sent!");
printf("%s has completed his registration! %s ", name, inputtext);
format(Jfile, 100, ACCOUNTS_PATH, GetName(playerid));
new INI:ACCOUNT = INI_Open(Jfile);
format(string,100,"%s",inputtext);
INI_WriteString(ACCOUNT, "Email", string);
Pretty much the same way i used to add emails when i used y_ini.
Re: String not Saving? y_ini -
Mr.Faqahat - 09.11.2013
Quote:
Originally Posted by DobbysGamertag
Have you attempted to format a string before inserting it?
pawn Код:
new name[24],string[100]; GetPlayerName(playerid, name, sizeof(name)); SendClientMessage(playerid, 0xFFFF00AA, "Thanks for finishing this operation the Email should be sent!"); printf("%s has completed his registration! %s ", name, inputtext); format(Jfile, 100, ACCOUNTS_PATH, GetName(playerid)); new INI:ACCOUNT = INI_Open(Jfile); format(string,100,"%s",inputtext); INI_WriteString(ACCOUNT, "Email", string);
Pretty much the same way i used to add emails when i used y_ini.
|
I see but Still nothing =( not working
Re: String not Saving? y_ini -
Mr.Faqahat - 09.11.2013
Help?
Re: String not Saving? y_ini - Emmet_ - 09.11.2013
You need to close the file to save the data.
pawn Код:
if(dialogid == Dialog_37)
{
if(response)
{
new name[24];
GetPlayerName(playerid, name, sizeof(name));
SendClientMessage(playerid, 0xFFFF00AA, "Thanks for finishing this operation the Email should be sent!");
printf("%s has completed his registration! %s ", name, inputtext);
format(Jfile, 100, ACCOUNTS_PATH, GetName(playerid));
new INI:ACCOUNT = INI_Open(Jfile);
INI_WriteString(ACCOUNT, "Email", inputtext);
INI_Close(ACCOUNT);
}
}
Re: String not Saving? y_ini -
Mr.Faqahat - 09.11.2013
Quote:
Originally Posted by Emmet_
You need to close the file to save the data.
pawn Код:
if(dialogid == Dialog_37) { if(response) { new name[24]; GetPlayerName(playerid, name, sizeof(name)); SendClientMessage(playerid, 0xFFFF00AA, "Thanks for finishing this operation the Email should be sent!"); printf("%s has completed his registration! %s ", name, inputtext); format(Jfile, 100, ACCOUNTS_PATH, GetName(playerid)); new INI:ACCOUNT = INI_Open(Jfile); INI_WriteString(ACCOUNT, "Email", inputtext); INI_Close(ACCOUNT); } }
|
no Bro Still not working