31.07.2011, 16:06
Hi all.Now i don't understand what happen here:
Here i format PlayerData[SiuntejoID][PhoneMessage] by message who he write and i test it:
new String20 [ 20 ];
format ( String20, 20, "%s",PlayerData[playerid][PhoneMessage]);
SendClientMessage(playerid,COLOR_GREEN,String20);
And work i get message whatever it's work,but
And no it's no work with this,text in dialog look like that: if player write text:Hello my name is samp.com ,and this write Name_LastName ,then in dialog by:
HName_LastName
And how you see,H is first letter of my text,i don't understand why?and where i get name?? wtf?please help me maybe i do something wrong.
Код:
format(PlayerData[SiuntejoID][PhoneMessage], 30, "%s", MessageID);
new String20 [ 20 ];
format ( String20, 20, "%s",PlayerData[playerid][PhoneMessage]);
SendClientMessage(playerid,COLOR_GREEN,String20);
And work i get message whatever it's work,but
Код:
if(dialogid == 9229) { if(response) { if(listitem == 0) { if( PlayerData[ playerid ][ Receivedmessages ] > 0)//if messages more than 0 { new StringSet [ 20 ]; format(StringSet,20, "%s",PlayerData[playerid][TelefonoZinute]); ShowPlayerDialog(playerid,9230,DIALOG_STYLE_LIST,"Gautos zinutes",StringSet,"Ziureti","Atgal"); } } } return 1; }
HName_LastName
And how you see,H is first letter of my text,i don't understand why?and where i get name?? wtf?please help me maybe i do something wrong.