Deejaybwg Posted June 18, 2011 Report Share Posted June 18, 2011 Cum fac la serverul meu sa fie /ro (limba romana) sau /eng (limba engleza) ? www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
IstuntmanI Posted June 18, 2011 Report Share Posted June 18, 2011 Setezi o variabila care sa fie limba, la 0 pentru engleza, 1 pentru romana, si pui functia asta:stock SendClientLanguageMessage( playerid, color, eng[ ], ro[ ] ) { switch( Language[ playerid ] ) { case 0: SendClientMessage( playerid, color, eng ); case 1: SendClientMessage( playerid, color, ro ); } return 1; } Si in loc de (exemplu) SendClientMessage( playerid, COLOR_WHITE, "Ce faci ?" ); folosesti SendClientLanguageMessage( playerid, COLOR_WHITE, "What are you doing ?", "Ce faci ?" );Sper ca te-ai prins ...PS: La /ro pui Language[ playerid ] = 1, iar la /eng pui Language[ playerid ] = 0; Link to comment Share on other sites More sharing options...
Deejaybwg Posted June 18, 2011 Author Report Share Posted June 18, 2011 stuntman-=!!" post="78083" timestamp="1308428845"]Setezi o variabila care sa fie limba, la 0 pentru engleza, 1 pentru romana, si pui functia asta:stock SendClientLanguageMessage( playerid, color, eng[ ], ro[ ] ) { switch( Language[ playerid ] ) { case 0: SendClientMessage( playerid, color, eng ); case 1: SendClientMessage( playerid, color, ro ); } return 1; } Si in loc de (exemplu) SendClientMessage( playerid, COLOR_WHITE, "Ce faci ?" ); folosesti SendClientLanguageMessage( playerid, COLOR_WHITE, "What are you doing ?", "Ce faci ?" ); Sper ca te-ai prins ... PS: La /ro pui Language[ playerid ] = 1, iar la /eng pui Language[ playerid ] = 0; stock SendClientLanguageMessage( playerid, color, eng[ ], ro[ ] ) { switch( Language[ playerid ] ) { case 0: SendClientMessage( playerid, color, eng ); case 1: SendClientMessage( playerid, color, ro ); } return 1; Asta pun in GM ? SendClientMessage( playerid, COLOR_WHITE, "Ce faci ?" ); folosesti SendClientLanguageMessage( playerid, COLOR_WHITE, "What are you doing ?", "Ce faci ?" ); Asta unde pun? La /ro pui Language[ playerid ] = 1, iar la /eng pui Language[ playerid ] = 0; Si asta unde pun? www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
xxSPEEDYxx Posted June 18, 2011 Report Share Posted June 18, 2011 sau mai usor faci o variabila de ex: Lang[MAX_PLAYERS]; si dupa aceea pui la OnPlayerConnect ShowPlayerDialog(playerid,LANG,DIALOG_STYLE_MSGBOX"Limba","Te rugam selecteaza limba inainte de a te spawma!","Romana","English"); dupa aceea in varful scriptului: #define LANG 1000 si dupa aceea pui la OnDialogResponse if(dialogid==LANG) { if(response) { SendClientMessage(playerid, COLOR_ORANGE,"Ai selectat limba romana [RO]"); Lang[playerid] = 1; }else { SendClientMessage(playerid, COLOR_ORANGE,"You set language English[ENG]"); Lang[playerid] = 0; } } si daca o sa vrei sa pui in SendClientMessage pui:if(Lang[playerid] = 0) SendClientMessage(playerid,etc..etc...cam atat... Fara reclama in semnatura! Link to comment Share on other sites More sharing options...
Deejaybwg Posted June 18, 2011 Author Report Share Posted June 18, 2011 Am inteles acum. Dar unde pun asta: Lang[MAX_PLAYERS]; ? www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
IstuntmanI Posted June 18, 2011 Report Share Posted June 18, 2011 Am inteles acum. Dar unde pun asta: Lang[MAX_PLAYERS]; ?De fapt, new Lang[ MAX_PLAYERS ];sus in script. Link to comment Share on other sites More sharing options...
Deejaybwg Posted June 18, 2011 Author Report Share Posted June 18, 2011 Am facut cum mi-a zis Speedy si..D:\[RSG]\Gamemodes\RSG.pwn(2773) : error 001: expected token: ",", but found "-string-"D:\[RSG]\Gamemodes\RSG.pwn(2773) : warning 215: expression has no effectD:\[RSG]\Gamemodes\RSG.pwn(2773) : warning 215: expression has no effectD:\[RSG]\Gamemodes\RSG.pwn(2773) : warning 215: expression has no effectD:\[RSG]\Gamemodes\RSG.pwn(2773) : warning 215: expression has no effectD:\[RSG]\Gamemodes\RSG.pwn(2773) : error 001: expected token: ";", but found ")"D:\[RSG]\Gamemodes\RSG.pwn(2773) : error 029: invalid expression, assumed zeroD:\[RSG]\Gamemodes\RSG.pwn(2773) : fatal error 107: too many error messages on one lineLinia 2773: ShowPlayerDialog(playerid,LANG,DIALOG_STYLE_MSGBOX"Limba","Este necesara selectarea limbii.","Romana","English"); www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
xxSPEEDYxx Posted June 19, 2011 Report Share Posted June 19, 2011 am gresit un pic eu la dialog-ul acela mam grabit poftim aici altul... ShowPlayerDialog(playerid, LANG, 0, "Language/Limba", "Necessarily have to choose your language\nSelect Romana or English", "Romana", "English" ); incerca akm... Fara reclama in semnatura! Link to comment Share on other sites More sharing options...
Deejaybwg Posted June 19, 2011 Author Report Share Posted June 19, 2011 Acum imi da:D:\[RSG]\Gamemodes\RSG.pwn(2778) : error 001: expected token: ";", but found "-identifier-"2778 SbK[playerid] = 0; Sb[playerid] = 0; Velocity[playerid] = 0;Nu inteleg de ce. Pana acum nu mi-a dat eroare aici.. :undecided: www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
xxSPEEDYxx Posted June 19, 2011 Report Share Posted June 19, 2011 lam ajutat eu prin team...era de la o ;a uitat sa puna la sfarsitul dialogului Fara reclama in semnatura! Link to comment Share on other sites More sharing options...
Question
Deejaybwg
Cum fac la serverul meu sa fie /ro (limba romana) sau /eng (limba engleza) ?
www.youtube.com/thebwgg
Link to comment
Share on other sites
9 answers to this question
Recommended Posts