Jump to content
  • 0

Cum fac si eu un dialog mare pentru comanda /help


SilviuSlv

Question

salut!

vreau sa fac si eu un dialog mare pentru comanda /help si nu stiu cum sa fac, am incercat eu sa fac ceva dar nu am reusit si as vrea sa imi spuneti cum fac mi-a dat eroare ca e prea lung si de aici m-am inpotmolit si as vrea sa imi explicati si mie cum sa fac nu sa imi dai 2-3 linkuri si sa imi ziceti ca fati.

	if(strcmp(cmd, "/help", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
		    SendClientMessage(playerid, COLOR_GRAD1,":: ACCOUNT :: /rules /stats /changepass /levelup /upgrade /factiuni /leaders");
			SendClientMessage(playerid, COLOR_GRAD1,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /opendoor(/od)");
			SendClientMessage(playerid, COLOR_GRAD2,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /askq /animlist /stopanim /fuel");
			SendClientMessage(playerid, COLOR_GRAD2,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist");
			SendClientMessage(playerid, COLOR_GRAD3,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smokeciggar");
	  		SendClientMessage(playerid, COLOR_GRAD3,":: CHAT :: (/p)me (/cw)hisper (/o)oc (/s)hout /low (/b) (/f)action /me /do /togooc /tognews /togfam /togpm /togphone");
			SendClientMessage(playerid, COLOR_GRAD4,":: BANK :: /balance /withdraw /deposit /wiretransfer");
			if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
			{
   				SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /undercover /backup(/bk)");
				SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: /frisk /friskinv /take /ticket (/gov)ernment /deliver /ram /swat /authorizeswat /deauthorizeswat /drag /copuntie /checkspeed");
				SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: /backupclear(/bkc) /roadblock(/rb) /roadunblock(/rrb) /roadunblockall(/rrball) /showbadge /tracelastcall(/tlc) /weplicense");
   			}
   			if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
			{
   				SendClientMessage(playerid, COLOR_YELLOW2, ":: SWAT :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /agent /showid /friskinv");
				SendClientMessage(playerid, COLOR_YELLOW2, ":: SWAT :: /frisk /take /ticket /swatmask (/gov)ernment /deliver /ram /drag /copuntie /authorizetactical /deauthorizetactical /tactical");
   			}
   			if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
			{
   				SendClientMessage(playerid, COLOR_YELLOW2, ":: Military :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /wanted (/cu)ff (/ta)zer");
				SendClientMessage(playerid, COLOR_YELLOW2, ":: Military :: /frisk /friskinv /take /ticket (/gov)ernment /deliver /ram /drag /copuntie");
   			}
            if(PlayerInfo[playerid][pJob] == 1) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /find"); }
		    else if(PlayerInfo[playerid][pJob] == 2) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /free"); }
		    else if(PlayerInfo[playerid][pJob] == 3) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sex"); }
		    else if(PlayerInfo[playerid][pJob] == 4) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /selldrugs"); }
		    else if(PlayerInfo[playerid][pJob] == 5) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /dropcar"); }
		    else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /paper /papers /live /news [text]"); }
		    else if(PlayerInfo[playerid][pJob] == 7) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /repair /refill /duty"); }
		    else if(PlayerInfo[playerid][pJob] == 8) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /guard"); }
		    else if(PlayerInfo[playerid][pJob] == 9) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sellgun"); }
		    else if(PlayerInfo[playerid][pJob] == 10) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sellcar"); }
		    else if(PlayerInfo[playerid][pJob] == 11) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /heal"); }
		    else if(PlayerInfo[playerid][pJob] == 12) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /fight /boxstats"); }
		    else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10|| PlayerInfo[playerid][pJob] == 14) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /fare"); }
		    else if(PlayerInfo[playerid][pJob] == 15) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /papers /bring /deliver"); }
		    else if(PlayerInfo[playerid][pJob] == 16) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /buyprods /sellprods /load"); }
		    else if(PlayerInfo[playerid][pJob] == 17) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /duty /sellpizza"); }
		    else if(PlayerInfo[playerid][pJob] == 18) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /startharvest /stopharvest"); }
		    else if(PlayerInfo[playerid][pJob] == 19) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /startdrugharvest /stopdrugharvest"); }
		    else if(PlayerInfo[playerid][pJob] == 20) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /smuggledrugs /selldrugsto"); }
		    else if(PlayerInfo[playerid][pJob] == 21) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /startsweep /stopsweep"); }
		    else if(PlayerInfo[playerid][pJob] == 22) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /smugglemats"); }
		    else if(PlayerInfo[playerid][pJob] == 23) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /creategun /buymats"); }
            else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: HITMAN :: /portable"); }
			if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
			{
				SendClientMessage(playerid, COLOR_YELLOW2, ":: SAMD :: (/r)adio (/d)epartments /heal /duty /tracelastcall(/tlc)");
			}
			if (PlayerInfo[playerid][pAdmin] >= 1)
			{
				SendClientMessage(playerid, COLOR_YELLOW, ":: ADMIN :: (/a)dmin (/ah)elp");
			}
			SendClientMessage(playerid, COLOR_GRAD6,":: OTHER :: /cellphonehelp /househelp /notehelp /vhelp /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp");
		}
		return 1;
	}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Taci ba HEKER!

Ca deja mai inervat

A intrebat cum poate sal faca

Nu sai-l facem noi

-------------------------------------

ON:

if  (strcmp(cmdtext, "/Help", true)== 0 )

{

new BigString15[1900];

  strcat(BigString15, "Scrie ce vrei\n", 1900 );

  strcat(BigString15, "Scrie ce vrei\n", 1900 );

  strcat(BigString15, "Scrie ce vrei\n", 1900 );

ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Titlu", BigString15, "Ok","");

    return 1;

    }

EDIT:Poti mai faci lini ca alea cu strcatETC..

Bafta

Link to comment
Share on other sites

dai la asta cum il adaug in dialog? ca imi cam prind urechile

if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
			{
   				SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /undercover /backup(/bk)");
				SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: /frisk /friskinv /take /ticket (/gov)ernment /deliver /ram /swat /authorizeswat /deauthorizeswat /drag /copuntie /checkspeed");
				SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: /backupclear(/bkc) /roadblock(/rb) /roadunblock(/rrb) /roadunblockall(/rrball) /showbadge /tracelastcall(/tlc) /weplicense");
   			}

sau pun la sfarsit de tot codul asta

  ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Titlu", BigString15, "Ok","");

ca sa imi ia tot dialogul de la cap la coada?

Link to comment
Share on other sites

Taci ba HEKER!

Ca deja mai inervat

A intrebat cum poate sal faca

Nu sai-l facem noi

-------------------------------------

ON:

if  (strcmp(cmdtext, "/Help", true)== 0 )

{

new BigString15[1900];

  strcat(BigString15, "Scrie ce vrei\n", 1900 );

  strcat(BigString15, "Scrie ce vrei\n", 1900 );

  strcat(BigString15, "Scrie ce vrei\n", 1900 );

ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Titlu", BigString15, "Ok","");

    return 1;

    }

EDIT:Poti mai faci lini ca alea cu strcatETC..

Bafta

Ai 40% warn, acum ai 45% warn pentru vorbele:

Taci ba HEKER!
Ca deja mai inervat

sau daca nu cumva esti avocatu lui + ca nu intereseaza pe nimeni ca te enervezi tu  :evil:

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.