[Pomoc]/help

Započeo caupton, Mart 21, 2011, 21:31:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Svoj gamemod od 0
Detaljan opis problema:Imam pitanje kako da stavim komandu /help u dijalog
   if(strcmp(cmd, "/help", true) == 0 || strcmp(cmd, "/pomoc", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
          SendClientMessage(playerid, COLOR_GRAD1,":: ACCOUNT :: /pravila /stats /promjenipass /kupilevel /nadogradnja");
         SendClientMessage(playerid, COLOR_GRAD1,":: OPSTE :: /plati /vrijeme /kupi /naruci /otvorivrata /odeca /unrentcar /unrentbike /switchkey /animhelp");
         SendClientMessage(playerid, COLOR_GRAD2,":: OPSTE :: /kupioruzije /pokazidozvole /zakljucaj /pitaj /report /resetupgrades(50k) /skill /fuel");
         SendClientMessage(playerid, COLOR_GRAD2,":: OPSTE :: /odbij /prihvati /izbaci /usedrugs /contract /fill /admins (/f)actionlist /knockout");
         SendClientMessage(playerid, COLOR_GRAD3,":: OPSTE :: (/wi)ndows /coin /trunk (/inv)entory /knock /give /otvorikapiju /pokazilicnu");
           SendClientMessage(playerid, COLOR_GRAD3,":: CHAT :: (/p)me (/w)hisper (/o)oc (/s)hout /low (/b) (/f)action /me /do /smoke");
         SendClientMessage(playerid, COLOR_GRAD4,":: BANKA :: /balance /withdraw /deposit /wiretransfer");
         SendClientMessage(playerid, COLOR_YELLOW,":: DONATOR :: /togooc /tognews /togfam /togpm /togphone /pme");
         if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11)
         {
               SendClientMessage(playerid, COLOR_YELLOW2, ":: POLICIJA :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /uhapsi /duznost /osumnjiceni /stavilisice /tazer /undercover");
            SendClientMessage(playerid, COLOR_YELLOW2, ":: POLICIJA :: /bk /bkc /pretresi /pretresinv /oduzmi /kazna /gov /area51 /srusivrata /ubaci /odvezipolicajca /pokaziznacku");
            SendClientMessage(playerid, COLOR_YELLOW2, ":: POLICIJA :: /roadblock(/rb) /roadunblock(/rrb) /roadunblockall(/rrball) /tracelastcall(/tlc) /weplicense");
            }
            if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
         {
               SendClientMessage(playerid, COLOR_YELLOW2, ":: BIA :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /uhapsi /duznost /osumnjiceni /stavilisice /tazer /agent /pokazibia");
            SendClientMessage(playerid, COLOR_YELLOW2, ":: BIA :: /pretresi /pretresinv /oduzmi /kazna (/gov)ernment /area51 /srusivrata /ubaci /odvezipolicajca");
            }
            if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
         {
               SendClientMessage(playerid, COLOR_YELLOW2, ":: SWAT :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /uhapsi /duznost /osumnjiceni /stavilisice /tazer");
            SendClientMessage(playerid, COLOR_YELLOW2, ":: SWAT :: /pretresi /pretresinv /oduzmi /kazna (/gov)ernment /area51 /srusivrata /ubaci /odvezipolicajca");
            }
            if(PlayerInfo[playerid][pJob] == 1) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /find"); }
          else if(PlayerInfo[playerid][pJob] == 2) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /free"); }
          else if(PlayerInfo[playerid][pJob] == 3) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /sex"); }
          else if(PlayerInfo[playerid][pJob] == 4) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /selldrugs"); }
          else if(PlayerInfo[playerid][pJob] == 5) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /dropcar"); }
          else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /paper /papers /live /news [text]"); }
          else if(PlayerInfo[playerid][pJob] == 7) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /repair /refill /duty"); }
          else if(PlayerInfo[playerid][pJob] == 8) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /guard"); }
          else if(PlayerInfo[playerid][pJob] == 9) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /sellgun"); }
          else if(PlayerInfo[playerid][pJob] == 10) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /sellcar"); }
          else if(PlayerInfo[playerid][pJob] == 11) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /prevoz"); }
          else if(PlayerInfo[playerid][pJob] == 12) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /fight /boxstats"); }
          else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10|| PlayerInfo[playerid][pJob] == 14) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /fare"); }
          else if(PlayerInfo[playerid][pJob] == 15) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /papers /bring /deliver"); }
          else if(PlayerInfo[playerid][pJob] == 16) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /buyprods /sellprods /load"); }
          else if(PlayerInfo[playerid][pJob] == 17) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /duty /sellpizza"); }
          else if(PlayerInfo[playerid][pJob] == 18) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /startharvest /stopharvest"); }
          else if(PlayerInfo[playerid][pJob] == 19) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /startdrugharvest /stopdrugharvest"); }
          else if(PlayerInfo[playerid][pJob] == 20) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /smuggledrugs"); }
          else if(PlayerInfo[playerid][pJob] == 21) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /startsweep /stopsweep"); }
          else if(PlayerInfo[playerid][pJob] == 22) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /smugglemats"); }
          else if(PlayerInfo[playerid][pJob] == 23) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /creategun /buymats"); }
            else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) {
          SendClientMessage(playerid,COLOR_YELLOW2,":: HITMAN :: /portable"); }
         if (gTeam[playerid] == 1 || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
         {
            SendClientMessage(playerid, COLOR_YELLOW2, ":: HITNA POMOC :: (/r)adio (/d)epartments /heal /duznost");
         }
         if (PlayerInfo[playerid][pAdmin] >= 1)
         {
            SendClientMessage(playerid, COLOR_YELLOW, ":: ADMIN :: (/a)dmin (/ah)elp");
         }
         if (PlayerInfo[playerid][pGm] >= 1)
         {
            SendClientMessage(playerid, COLOR_YELLOW, ":: GAMEMASTER :: (/g)amemaster (/gmh)elp");
         }
         SendClientMessage(playerid, COLOR_GRAD6,":: OSTALO :: /cellphonehelp /househelp /notehelp /vehiclehelp /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp");
      }
      return 1;
   }



Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):


vec sam tako uradio i sve radi kucam /help i nece radi ;S



ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, " Dobrodosli ",":: ACCOUNT :: /pravila /stats /promjenipass /kupilevel /nadogradnja\n:: OPSTE :: /plati /vrijeme /kupi /naruci /otvorivrata /odeca /unrentcar /unrentbike /switchkey /animhelp\n:: OPSTE :: /kupioruzije /pokazidozvole /zakljucaj /pitaj /report /resetupgrades(50k) /skill /fuel\n:: OPSTE :: /kupioruzije /pokazidozvole /zakljucaj /pitaj /report /resetupgrades(50k) /skill /fuel ", "Uredu","Izadi");



I onda ih samo dodavaj, kad budes dodavao novi SendClientMessage stavljaj \n ( novi red ) i radit ce ti sigurno.

Ukoliko ti ne radi pogledaj tutorial, pogledaj tutorial i na forum-samp.com jer kad sam ja ucio radio sam po tog, i uspjeo sam napraviti dialoze i naucio sam dobro.
Poslednja Izmena: Mart 21, 2011, 21:54:24 POSLE PODNE od Jamaica