calin1996 Posted May 1, 2012 Posted May 1, 2012 La compile nu am probleme,dar,cand dau /help imi apare titlul dialogului,si restu pauza,e gol...Linie exemplu:[pawn]new HelpString[1073] strcat( HelpString,":: CONT :: /reguli /login /stats /carstats /changepass /levelup /upgrade /askq");[/pawn]Imagine:Uploaded with ImageShack.us
Mr.Kiss Posted May 1, 2012 Posted May 1, 2012 Cauta un tutorial pe forum cu dialogchatbox . Sunt multe tutoriale sigur o sa gasesti unu bun .P.S: Trimite-mi si mie te rog frumos textdraw-ul acela cu Romania by ... . Mersi
calin1996 Posted May 2, 2012 Author Posted May 2, 2012 Asa se foloseste strcatPai c evezi tu acol e doar inceputu,mai am si alte linii,si linia [pawn]ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "strcat example", string, "Close", "");[/pawn]Sunt puse toate doar ca nu-mi apare..Ia vezi la : new HelpString[1073] Ca ai mancat ; ...PAi si la compile nu imi dadea erori daca nu-l aveam??
PawnFox Posted May 2, 2012 Posted May 2, 2012 Exemplu:[pawn]#define DIALOG_HELP 4864new d_hString [ 1024 ];strcat( d_hString, "Continut ...................................... \n\ Continut.........................................\n\ Continut.........................................\n");strcat( d_hString, "etc .............................................. \n\ etc ..............................................\n");ShowPlayerDialog( playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Titlu", g_hString, "Exit", "" );[/pawn] 94.23.120.101:7778
calin1996 Posted May 2, 2012 Author Posted May 2, 2012 PawnFox" post="123720" timestamp="1335966094"]Exemplu:[pawn]#define DIALOG_HELP 4864new d_hString [ 1024 ];strcat( d_hString, "Continut ...................................... \n\ Continut.........................................\n\ Continut.........................................\n");strcat( d_hString, "etc .............................................. \n\ etc ..............................................\n");ShowPlayerDialog( playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Titlu", g_hString, "Exit", "" );[/pawn]Acceasi treaba
[RGZ]ExTREME Posted May 2, 2012 Posted May 2, 2012 Mda De ce nu faci asa [pawn]new string[512];strcat( string, "Cont: ....................\n" );strcat( string, "Playerid...................\n" );ShowPlayerDialog( playerid, 123, DIALOG_STYLE_MSGBOX, "Help", string, "K", "N" );[/pawn]
TheDevils Posted May 2, 2012 Posted May 2, 2012 ExTREME" post="123757" timestamp="1335973639"]Mda De ce nu faci asa [pawn]new string[512];strcat( string, "Cont: ....................\n" );strcat( string, "Playerid...................\n" );ShowPlayerDialog( playerid, 123, DIALOG_STYLE_MSGBOX, "Help", string, "K", "N" );[/pawn]Ce ai zis tu e la fel ca ce a zis [V]PawnFox ..Ia posteaza aici toata comanda .. Sa vedem cum sta treaba .
calin1996 Posted May 2, 2012 Author Posted May 2, 2012 Am reusit,ms de ajutor dar am gasit si a mers cu [pawn]strins[/pawn]
vampir_MD Posted May 2, 2012 Posted May 2, 2012 CMD:help(playerid, params[]) { new string[2024]; strcat(string,"\nTeeeeeeeeeeeeeeeeeeeeeeeeext"); strcat(string,"\nTeeeeeeeeeeeeeeeeeeeeeeeeext"); strcat(string,"\nTeeeeeeeeeeeeeeeeeeeeeeeeext"); ShowPlayerDialog(playerid,0001,DIALOG_STYLE_MSGBOX,"Text",string,"-->oK<--", "Cancel"); return 1;}
Question
calin1996
La compile nu am probleme,dar,cand dau /help imi apare titlul dialogului,si restu pauza,e gol...
Linie exemplu:
[pawn]new HelpString[1073]
strcat( HelpString,":: CONT :: /reguli /login /stats /carstats /changepass /levelup /upgrade /askq");[/pawn]
Imagine:
Uploaded with ImageShack.us
10 answers to this question
Recommended Posts