04.08.2011, 12:53
Hi all.I have a question with a message save.Here is my script:
And how you see this:
i want to save in this message:and i use
and then i test:
But in this code i get wrong message,i don't get message only empty message like that:
Maybe i use this wrong :
Or maybe i use others things bad...
Код:
COMMAND:pm(playerid, params[]) // or CMD:mycommand(playerid, params[]) { new SenderID,MessageID [ 30 ]; if (sscanf(params, "us[20]", SenderID,MessageID)){SendClientMessage(playerid, COLOR_ORANGE, "* Send message for player: /pm [part of name] [message]");return 1;} if( SenderID == INVALID_PLAYER_ID ){SendClientMessage( playerid, 0xFFFFFFFF, "* This player do not exist" );return 1;} if( strlen( MessageID ) > 20 ) return SendClientMessage( playerid, 0xFFFFFFFF, "* Message too long [MAX:20]" );
Код:
PlayerData[SenderID][PhoneMessage] = strlen( MessageID[20] );
Код:
new String20 [ 20 ]; format ( String20, 20, "%s",strlen(PlayerData[playerid][PhoneMessage])); SendClientMessage(playerid,COLOR_GREEN,String20);
Код:
PlayerData[SenderID][TelefonoZinute]
Код:
strlen( MessageID[20] );
Код:
new String20 [ 20 ]; format ( String20, 20, "%s",strlen(PlayerData[playerid][PhoneMessage])); SendClientMessage(playerid,COLOR_GREEN,String20);
Код:
SendClientMessage(playerid,COLOR_GREEN," ");
Код:
strlen( MessageID[20] );