09.08.2012, 07:47
hmm
pawn Код:
/*I think you understood me wrong. It was just an example, i want to write everything with that stock, not only weapon names...
Like:
SendMeMessage(playerid, "opens the door."); ------> * Micheal opens the door.
SendMeMessage(playerid, "takes out his %s", weapon); ------> * Micheal takes out his Deagle.
SendMeMessage(playerid, "thinks of number %d", number); ------> * Micheal thinks of number 10.
I hope you get me? The format in this is what i need.*/
new pname[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s has open the door.", pname);
SendClientMessage(playerid, -1, string);
//SendMeMessage(playerid, "opens the door."); ------> * Micheal opens the door.
new weapon, string[256], pname[MAX_PLAYER_NAME];
weapon = GetPlayerWeapon(playerid);
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s takes out his weapon %s", pname, weapon);
SendClientMessage(playerid, -1, string);
//SendMeMessage(playerid, "takes out his %s", weapon); ------> * Micheal takes out his Deagle.
new pname[MAX_PLAYER_NAME], number, string[256];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s thinks of number %d", pname, number);
SendClientMessage(playerid, -1, string);
//SendMeMessage(playerid, "thinks of number %d", number); ------> * Micheal thinks of number 10.