How i should make sendclientmessage for me and target
#7

Quote:
Originally Posted by oktokt1
Посмотреть сообщение
Sorry but why you guys need code ?
Just try it
Код:
new name1[28],name2[28],str1[250],str2[250];
format(str1, sizeof(str1),"You sent ammo to %s(%d)",GetPlayerName(target,name2,28),target);
SendclientMessage(playerid,0xFFFF33,str1);
format(str2, sizeof(str2),"Player %s(%d) sent you ammo.",GetPlayerName(playerid,name2,28),playerid);
SendclientMessage(target,0xFFFF33,str2);
Try it
IF I make any mistake please fix it guys I did it with phone
PHP код:
new name1[28],name2[28
dude oktokt
you've to write it like this :
PHP код:
 new name1[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME]; 
as oMa37 said.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)