vopojtepek 0 Odesláno: 27. Prosinec, 2013 Share Odesláno: 27. Prosinec, 2013 Ahojte, povedal by mi niekto čo v tom mam zle prečo ked dam /taxi a vyberem niaku polohu tak nenapíše nič ? if(dialogid == 2550) { if(response == 1) { if(listitem == 0) { new string[256]; new menohraca[MAX_PLAYER_NAME]; GetPlayerName(playerid,menohraca,MAX_PLAYER_NAME); if (strlen(inputtext) > 0 && response) format(string,sizeof(string),"------------------------------------\n{ff00ff}%s hladá {ff00ff}taxi službu. {00ff00}Nachádza sa v meste {ff00ff}Los Santos\n{00ffff}------------------------------------",menohraca); SendClientMessageToAll(0x00FFFFFF,string); } if(listitem == 1) { new string[256]; new menohraca[MAX_PLAYER_NAME]; GetPlayerName(playerid,menohraca,MAX_PLAYER_NAME); if (strlen(inputtext) > 0 && response) format(string,sizeof(string),"------------------------------------\n{ff00ff}%s hladá {ff00ff}taxi službu. {00ff00}Nachádza sa v meste {ff00ff}Las Venturas\n{00ffff}------------------------------------",menohraca); SendClientMessageToAll(0x00FFFFFF,string); } if(listitem == 2) { new string[256]; new menohraca[MAX_PLAYER_NAME]; GetPlayerName(playerid,menohraca,MAX_PLAYER_NAME); if (strlen(inputtext) > 0 && response) format(string,sizeof(string),"------------------------------------\n{ff00ff}%s hladá {ff00ff}taxi službu. {00ff00}Nachádza sa v meste {ff00ff}San Fiero \n{00ffff}------------------------------------",menohraca); SendClientMessageToAll(0x00FFFFFF,string); } } } Link to comment Share on other sites More sharing options...
0 Frajtr 8 Odesláno: 27. Prosinec, 2013 Share Odesláno: 27. Prosinec, 2013 1) stačí if(response) 2) chyba je v textu nemůžeš používat znaky jako \n a myslet si že ti to udělá nový řádek pokud to tak chceš udělej to takto : SendClientMessageToAll(0x00FFFFFF,"-----------------------------------------------------------------------------------------------------------------"); SendClientMessageToAll(0x00FFFFFF,string); SendClientMessageToAll(0x00FFFFFF,"-----------------------------------------------------------------------------------------------------------------"); samožřejmě si formát textu uprav respektive odstran ty čárky s tím \n - Určitě je i více způsobu ja kten text vytvořit třeba vložením stringu do stringu nebo tak podobně ale na to přídeš postupem času Link to comment Share on other sites More sharing options...
0 vopojtepek 0 Odesláno: 27. Prosinec, 2013 Author Share Odesláno: 27. Prosinec, 2013 Díky Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 27. Prosinec, 2013 Share Odesláno: 27. Prosinec, 2013 Maximalni pocet odesilatelnych znaku v SCm je 144 a "\n" v scm neudela novy radek. Link to comment Share on other sites More sharing options...
0 Tanga 131 Odesláno: 27. Prosinec, 2013 Share Odesláno: 27. Prosinec, 2013 Maximalni pocet odesilatelnych znaku v SCm je 114 a "\n" v scm neudela novy radek. - Moja chyba, myslel som, že hej, to ja som mu poradil. Link to comment Share on other sites More sharing options...
Dotaz
vopojtepek 0
Ahojte, povedal by mi niekto čo v tom mam zle prečo ked dam /taxi a vyberem niaku polohu tak nenapíše nič ?
Link to comment
Share on other sites
4 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