28.04.2012, 14:14
I did for save the description of a player.
Description is set good.
Foto.
Below is line 1, line 2, line3
But when I restart saved only the first letter.
Look
Code
Sorry my bad english
Description is set good.
Foto.
Below is line 1, line 2, line3
But when I restart saved only the first letter.
Look
Code
Код:
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------ if(dialogid == Dialog_Text)//Text { if(response) { new Texts[128]; if ( sscanf( inputtext, "s[128]", Texts[ 0 ] ) ) return ShowPlayerDialog(playerid ,Dialog_Text,1, ""R"Description", ""O"Please enter your "L"Descritpion!", "Description", "Exit" ); PlayerInfo[playerid] [Text] = Texts; } } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ if(dialogid == Dialog_Text1)//Text1 { if(response) { new Texts[128]; if ( sscanf( inputtext, "s[128]", Texts[ 0 ] ) ) return ShowPlayerDialog(playerid ,Dialog_Text,1, ""R"Description", ""O"Please enter your "L"Descritpion!", "Description", "Exit" ); PlayerInfo[playerid] [Text1] = Texts; } } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ if(dialogid == Dialog_Text2)//Text2 { if(response) { new Texts[128]; if ( sscanf( inputtext, "s[128]", Texts[ 0 ] ) ) return ShowPlayerDialog(playerid ,Dialog_Text,1, ""R"Description", ""O"Please enter your "L"Descritpion!", "Description", "Exit" ); PlayerInfo[playerid] [Text2] = Texts; } }