|pomoc|Report,askq

Započeo |OY:RP| James, Januar 29, 2013, 15:03:43 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Scripta Koju Koristim:GTARP
Detaljni Opis:e ovako ubaciosam /report i /askq al u dialzima i nema erore ja udjem na srv i ukucam /askq il /report ono izbaci sve lepo i kad ukucam al ne dodje Poruka adminima taj tekst ko oce pomoc
deo scripte:
   if(strcmp(cmd, "/report", true) == 0 || strcmp(cmd, "/re", true) == 0)
   {
ShowPlayerDialog(playerid, 8370, DIALOG_STYLE_INPUT, "  {FF0000}Report/Prijavi", " Videli ste citera, hocete da ga prijavite!? \n Upisite ovde ispod vasu prijavu, admini/helperi ce vam u najbrzem roku odgovoriti\n na vasu prijavu. Svako slanje prijave je 50$\n Upozorenje: Svaka uvreda sledi kick/ban.\n\n Maximum Gaming RolePlay 2013 (c)", "Prijavi", "Odustani");
   }
if(strcmp(cmd, "/ask", true) == 0 || strcmp(cmd, "/pitaj", true) == 0 || strcmp(cmd, "/askq", true) == 0)
    {
   ShowPlayerDialog(playerid, 8371, DIALOG_STYLE_INPUT, "  {FF0000}Askq/Pitaj", " Treba vam pomoc!? \n Upisite ovde ispod vase pitanje, admini/helperi ce vam u najbrzem roku odgovoriti\n na vase pitanje. Svaka poruka je 50$.\n Upozorenje: Svaka uvreda sledi kick/ban.\n\n Maximum Gaming RolePlay 2013 (c)", "pitaj", "odustani");   return 1;
   }
   if(strcmp(cmd,"/askqq",true)==0 || strcmp(cmd,"/pitajj",true)==0 || strcmp(cmd,"/pitajadmina",true)==0)
   {
       if(IsPlayerConnected(playerid))
       {
           GetPlayerName(playerid, sendername, sizeof(sendername));
         new length = strlen(cmdtext);
         giveplayerid = strval(tmp);
         while ((idx < length) && (cmdtext[idx] <= ' '))
         {
            idx++;
         }
         new offset = idx;
         new result[64];
         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
         {
            result[idx - offset] = cmdtext[idx];
            idx++;
         }
         result[idx - offset] = EOS;
         if(!strlen(result))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "{8080FF}MG-RP | CMD: {FFFFFF}/pitaj [text]");
            return 1;
         }
            format(string, sizeof(string), "* Pitanje od %s-a: - ID:%d || {ffffff} %s", sendername, playerid, (result));
         ABroadCast(COLOR_ASKQ,string,1);
         SendClientMessage(playerid, COLOR_ASKQ, " {FF0080}MG-RP: {FFFFFF}Vase pitanje je poslato Adminima & helperima.");
       }
       return 1;
   }
slike: ako trebam sliakt slikacu
Poslednja Izmena: Januar 29, 2013, 17:21:48 POSLE PODNE od KiX.

OLD YEARS ROLEPLAY ||TRAILER: http://www.youtube.com/watch?v=taUoUNkqXLA


ne bumpaj!, stavis tamo u komandu da stize adminima poruka SendAdminMessage


Citat: Blaeks poslato Januar 29, 2013, 17:29:59 POSLE PODNE
ne bumpaj!, stavis tamo u komandu da stize adminima poruka SendAdminMessage
TO mene jebe isto,ja kucam SendAdminMassage pise nije definiran simbol,ja definiram opet ne valja :S
NEW NEW NEW

Team Fortress od sada i na SA:MP-u!!!
Dodite i zabavite se!

IP: 62.210.122.191:7789

stavis ovo u komandu format(string, sizeof(string), "%s - ID:%d kaze administratorima: %s", sendername, playerid, (result));
SendAdminMessage(-1,string,1);

kad stavio ovde mi baca eror
pwn(27823) : warning 202: number of arguments does not match definition
SendAdminMessage(-1,string,1);

vakosam sad stavio

   if(strcmp(cmd, "/report", true) == 0 || strcmp(cmd, "/re", true) == 0)
   {
ShowPlayerDialog(playerid, 8370, DIALOG_STYLE_INPUT, "  {FF0000}Report/Prijavi", " Videli ste citera, hocete da ga prijavite!? \n Upisite ovde ispod vasu prijavu, admini/helperi ce vam u najbrzem roku odgovoriti\n na vasu prijavu. Svako slanje prijave je 50$\n Upozorenje: Svaka uvreda sledi kick/ban.\n\n Maximum Gaming RolePlay 2013 (c)", "Prijavi", "Odustani");
   }
if(strcmp(cmd, "/ask", true) == 0 || strcmp(cmd, "/pitaj", true) == 0 || strcmp(cmd, "/askq", true) == 0)
    {
   ShowPlayerDialog(playerid, 8371, DIALOG_STYLE_INPUT, "  {FF0000}Askq/Pitaj", " Treba vam pomoc!? \n Upisite ovde ispod vase pitanje, admini/helperi ce vam u najbrzem roku odgovoriti\n na vase pitanje. Svaka poruka je 50$.\n Upozorenje: Svaka uvreda sledi kick/ban.\n\n Maximum Gaming RolePlay 2013 (c)", "pitaj", "odustani");   return 1;
   }
   if(strcmp(cmd,"/askqq",true)==0 || strcmp(cmd,"/pitajj",true)==0 || strcmp(cmd,"/pitajadmina",true)==0)
   {
       if(IsPlayerConnected(playerid))
       {
           GetPlayerName(playerid, sendername, sizeof(sendername));
         new length = strlen(cmdtext);
         giveplayerid = strval(tmp);
         while ((idx < length) && (cmdtext[idx] <= ' '))
         {
            idx++;
         }
         new offset = idx;
         new result[64];
         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
         {
            result[idx - offset] = cmdtext[idx];
            idx++;
         }
         result[idx - offset] = EOS;
         if(!strlen(result))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "{8080FF}MG-RP | CMD: {FFFFFF}/pitaj [text]");
            return 1;
         }
            format(string, sizeof(string), "%s - ID:%d kaze administratorima: %s", sendername, playerid, (result));
         SendAdminMessage(-1,string,1);
         format(string, sizeof(string), "* Pitanje od %s-a: - ID:%d || {ffffff} %s", sendername, playerid, (result));
         ABroadCast(COLOR_ASKQ,string,1);
         SendClientMessage(playerid, COLOR_ASKQ, " {FF0080}MG-RP: {FFFFFF}Vase pitanje je poslato Adminima & helperima.");
       }
       return 1;
   }

OLD YEARS ROLEPLAY ||TRAILER: http://www.youtube.com/watch?v=taUoUNkqXLA