Jump to content

Question

Posted

Salut.Ma puteti ajuta cu ceva?

if (strcmp(cmdtext, "/cmds", true)==0)
{
		new Cmds [2048];
                strcat(Cmds, "{0000FF} Deadly {FFFF66} Maximum {FF0000}Stunt {FF9900} Commands!\n", 2048 );
        strcat(Cmds, "  {FF9900} Aceste comenzi pot fi folosite in chat (F6 ori  T). Citeste-le pe toate!\n\n\n",2048 );
		strcat(Cmds, "  {FF0000}/v {FF9900}- Meniu cu toate vehiculele de pe acest server.  \n", 2048 );
		strcat(Cmds, "  {FF0000}/arme {FF9900}- Meniu cu cateva arme de pe acest server. Toate armele costa. \n", 2048 );
		strcat(Cmds, "  {FF0000}/l {FF9900}-intoarcete la pozitia salvata!\n", 2048 );
		                  ShowPlayerDialog(playerid, 115, DIALOG_STYLE_MSGBOX, "{C6C6C6}Commands Page 1:", Cmds, "Ok","");
                return 1;
}

As vrea sa mai creez o pagina la asta cu alte comezni. EX asta e prima pagina cu comenzi iar eu vreau sa mai fac o pagina. Cand scriu cmds sa apara prima pagina cu comenzi iar jos sa apara next sau cancel. Cand dau next sa apara a doua pagina cu comenzi. Cum fac?

200r807.gif

14 answers to this question

Recommended Posts

Posted

Salut.Ma puteti ajuta cu ceva?

if (strcmp(cmdtext, "/cmds", true)==0)
{
		new Cmds [2048];
                strcat(Cmds, "{0000FF} Deadly {FFFF66} Maximum {FF0000}Stunt {FF9900} Commands!\n", 2048 );
        strcat(Cmds, "  {FF9900} Aceste comenzi pot fi folosite in chat (F6 ori  T). Citeste-le pe toate!\n\n\n",2048 );
		strcat(Cmds, "  {FF0000}/v {FF9900}- Meniu cu toate vehiculele de pe acest server.  \n", 2048 );
		strcat(Cmds, "  {FF0000}/arme {FF9900}- Meniu cu cateva arme de pe acest server. Toate armele costa. \n", 2048 );
		strcat(Cmds, "  {FF0000}/l {FF9900}-intoarcete la pozitia salvata!\n", 2048 );
		                  ShowPlayerDialog(playerid, 115, DIALOG_STYLE_MSGBOX, "{C6C6C6}Commands Page 1:", Cmds, "Ok","");
                return 1;
}

As vrea sa mai creez o pagina la asta cu alte comezni. EX asta e prima pagina cu comenzi iar eu vreau sa mai fac o pagina. Cand scriu cmds sa apara prima pagina cu comenzi iar jos sa apara next sau cancel. Cand dau next sa apara a doua pagina cu comenzi. Cum fac?

Pur si simplu poti face /cmds1 si /cmds2 ...

Posted

1. N-ai nevoie de 2000 max litere la un string ^_^.

2. Te ajuti cu response (variabila) la functia OnDialogResponse.

Pai dc nu il ajuti :| daca stii atat de multe? Eu l-as ajuta dar din pacate nu stiu ;;). Daca stie cineva ajutatil.

Posted

[pawn]ShowPlayerDialog(playerid, 115, DIALOG_STYLE_MSGBOX, "{C6C6C6}Commands Page 1:", Cmds, "Next","Cancel");[/pawn]

La OnDialogRespnse

[pawn]if(dialogid == 115)

{

      if(respnse)

      {

              ShowPlayerDialog(playerid, 116, DIALOG_STYLE_MSGBOX,{C6C6C6}Commands Page 2:", Cmds2, "Next","Cancel")

      }

}[/pawn]

Si faci alt string cu cmds2

gXvsYS
Posted

Pai dc nu il ajuti :| daca stii atat de multe? Eu l-as ajuta dar din pacate nu stiu ;;). Daca stie cineva ajutatil.

Eu i-am zis ce sa faca, nu-i fac eu scriptul, asa niciodata nu o sa invete scripting.

Good Luck.

Banner_2.png
Posted

[pawn]ShowPlayerDialog(playerid, 115, DIALOG_STYLE_MSGBOX, "{C6C6C6}Commands Page 1:", Cmds, "Next","Cancel");[/pawn]

La OnDialogRespnse

[pawn]if(dialogid == 115)

{

      if(respnse)

      {

              ShowPlayerDialog(playerid, 116, DIALOG_STYLE_MSGBOX,{C6C6C6}Commands Page 2:", Cmds2, "Next","Cancel")

      }

}[/pawn]

Si faci alt string cu cmds2

Ma ,dar dupa ce bag asta si dau compile imi apar astea :

C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11369) : error 017: undefined symbol "C6C6C6"
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11369) : error 017: undefined symbol "Commands"
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11369) : error 017: undefined symbol "Page"
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11369) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
si daca pun cu " in fata {C6C6C6} imi apare doar asta:
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11369) : error 017: undefined symbol "Cmds2"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
si dupaia scriu new Cmds2; si imi apare :
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11370) : error 035: argument type mismatch (argument 5)
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(13066) : warning 203: symbol is never used: "Cmds2"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

11370      ShowPlayerDialog(playerid, 116, DIALOG_STYLE_MSGBOX,"{C6C6C6}Commands Page 2:", Cmds2 ,"Next","Cancel")

200r807.gif
Posted

Descarca inc ala  pune unde ai tu pawno\include pune ce ai descarcat

Intra in gm/fs si adauga unde mai ai si alte include

[pawn]#include <dbuffer>[/pawn]

ai facut asta?

Incearca sa faci ceva de genul

[pawn] if(strcmp(cmd, "/cmds", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

ShowPlayerDialog(playerid, DIALOG_BLAH, DIALOG_STYLE_MSGBOX, "Dialog 1", "Info", "Next", "");

ShowPlayerDialog(playerid, DIALOG_BLAH, DIALOG_STYLE_MSGBOX, "Dialog 2", "Info", "Next", "");

ShowPlayerDialog(playerid, DIALOG_BLAH, DIALOG_STYLE_MSGBOX, "Dialog 3", "Info", "Close", "");

}

return 1;

}[/pawn]

Posted

Ma ,dar dupa ce bag asta si dau compile imi apar astea :

C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11369) : error 017: undefined symbol "C6C6C6"
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11369) : error 017: undefined symbol "Commands"
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11369) : error 017: undefined symbol "Page"
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11369) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
si daca pun cu " in fata {C6C6C6} imi apare doar asta:
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11369) : error 017: undefined symbol "Cmds2"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
si dupaia scriu new Cmds2; si imi apare :
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11370) : error 035: argument type mismatch (argument 5)
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(13066) : warning 203: symbol is never used: "Cmds2"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

11370      ShowPlayerDialog(playerid, 116, DIALOG_STYLE_MSGBOX,"{C6C6C6}Commands Page 2:", Cmds2 ,"Next","Cancel")

Nu stii dc imi da eorile alea?

200r807.gif
Posted

Nu pot pune culori acesta este dialog

Sterge

[pawn]{C6C6C6}[/pawn]

Daca sterg {C6C6C6}[ imi da si mai multe erori :(( :(( :(( :tongue: :tongue: :tongue: :tongue: :tongue: :tongue: :tongue: :tongue: :tongue: :tongue:

200r807.gif
Posted

C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(11369) : error 017: undefined symbol "Cmds2"

Ti`am zis sa creezi alt string cum e cmds1 sa faci si 2 si pui urmatoarele comenzi acolo.

gXvsYS
Posted

[pawn]#include <a_samp>

public OnFilterScriptInit()

{

print("\n--------------------------------------");

print(" FS by Andy47");

print("--------------------------------------\n");

return 1;

}

public OnFilterScriptExit()

{

return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp("/cmds", cmdtext, true, 10) == 0)

{

new cmds[123];//am facut new-ul am pus 1 acolo daca ai gm deja ceva definit schimbal....

strcat(cmds,"Drifts \n",123);//am facut strcat

strcat(cmds,"/drift[1-100] \n",123);//am facut strcat

strcat(cmds,"/adrift /sdrift /vdrift \n",123);//am facut strcat

ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "Commands Page 1:",cmds, "Next","Close");

return 1;

}

return 0;

}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

{

if(dialogid == 123) //apasa playeru primu buton adica Next

{

if(response)

{

ShowPlayerDialog(playerid, 124, DIALOG_STYLE_MSGBOX,"Commands Part2", "Others \n /lvair /ls /sf /lsair \n", "Next","Close");

}

else // a doilea buton nu face nimic...aici puteai face cu back

{

}

return 1;

}

if(dialogid == 124) // asta e la cea din inainte cand dai Next

{

if(response)

{

ShowPlayerDialog(playerid, 124, DIALOG_STYLE_MSGBOX,"Commands Part3", "DM \n /ddz /ddz2 /m4am /ak47 \n", "Ok","Close");

}

else // a doilea buton nu face nimica aici puteai face cu back

{

}

return 1;

}

return 1;

}

[/pawn]

EDIT: vroiam sa tio fac si cu back dar..trb acolo schimbat ceva daca vrei sa-ti fac cautama:D

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.