j1KUB 0 Odesláno: 29. Říjen, 2013 Share Odesláno: 29. Říjen, 2013 Dobrý den, Potřeboval bych poradit... Potřebuju když se hráč portne (např. /letiště) tak aby to do chatu napsalo " [Nick] [iD] se odwarpowal na LETIŠTĚ" Hlavně potřebuju ten NICK. Někde už jsem viděl toto. "%s se odwarpoval na LETIŠTĚ" ale to když jsem použil tak spadl celej server. Snad mě dobře pochopíte:) Omlouvám se za pravopis, píšu z tabletu:D Díky moc! Link to comment Share on other sites More sharing options...
0 Hlavní moderátor vEnd 279 Odesláno: 29. Říjen, 2013 Hlavní moderátor Share Odesláno: 29. Říjen, 2013 GetPlayerName format new str[128]; GetPlayerName(playerid,str,sizeof(str)); format(str,sizeof(str),"%s(id:%d) se odwarpoval na LETIŠTĚ",str,playerid); SendClientMessageToAll(-1,str); nebo si dej do módu tuhle funkci: PlayerName(playerid) { new name[21]; GetPlayerName(playerid,name,sizeof(name)); return name; } a pak to používej takto: new str[128]; format(str,sizeof(str),"%s(id:%d) se odwarpoval na LETIŠTĚ",PlayerName(playerid),playerid); SendClientMessageToAll(-1,str); Link to comment Share on other sites More sharing options...
0 Rad012 23 Odesláno: 29. Říjen, 2013 Share Odesláno: 29. Říjen, 2013 http://pawno.cz/topic/42771-format/ http://wiki.sa-mp.com/wiki/Format ukážka: new meno[MAX_PLAYER_NAME], string[128]; format(string,sizeof(string),"Moje meno je %s(ID %d)",meno,playerid); SendClientMessage(playerid,-1,string); Link to comment Share on other sites More sharing options...
0 rhsCZ 19 Odesláno: 29. Říjen, 2013 Share Odesláno: 29. Říjen, 2013 http://pawno.cz/topic/42771-format/ http://wiki.sa-mp.com/wiki/Format ukážka: new meno[MAX_PLAYER_NAME], string[128]; format(string,sizeof(string),"Moje meno je %s(ID %d)",meno,playerid); SendClientMessage(playerid,-1,string); ty šmudlo kde máš GetPlayerName vidim jen new meno[MAX_PLAYER_NAME] s nulovou hodnotou Link to comment Share on other sites More sharing options...
0 LORD BENDTNER 0 Odesláno: 29. Říjen, 2013 Share Odesláno: 29. Říjen, 2013 Stačí aj Stock namiesto meno Link to comment Share on other sites More sharing options...
0 Rad012 23 Odesláno: 29. Říjen, 2013 Share Odesláno: 29. Říjen, 2013 Boha sorry :d Link to comment Share on other sites More sharing options...
0 Tanga 131 Odesláno: 29. Říjen, 2013 Share Odesláno: 29. Říjen, 2013 Práve som dorobil návod na format pre najblbších, snáď aj tebe pomôže. Link to comment Share on other sites More sharing options...
Dotaz
j1KUB 0
Dobrý den,
Potřeboval bych poradit... Potřebuju když se hráč portne (např. /letiště) tak aby to do chatu napsalo " [Nick] [iD] se odwarpowal na LETIŠTĚ"
Hlavně potřebuju ten NICK.
Někde už jsem viděl toto. "%s se odwarpoval na LETIŠTĚ" ale to když jsem použil tak spadl celej server.
Snad mě dobře pochopíte:) Omlouvám se za pravopis, píšu z tabletu:D
Díky moc!
Link to comment
Share on other sites
6 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now