[Pomoc] Problem sa komandom /ccnn

26. Apr. 2011.
708
pregleda
5
postova
matematicar
4
Enforcer
26. Apr. 2011.
Skripta koju koristim: Cyber Editujem ga
Detaljan opis problema: ubacio sam iz ravensa komandu /ccnn to je kao /cnn samo pise kao da kaze Chuck Noris 😄
Dio skripte: Ovo je komanda :
if(strcmp(cmd, "/ccnn", true) == 0) // By CuervO_NegrO
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo >= 6)
{

new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /ccnn [cnn textformat ~n~=Newline ~r~=Red ~g~=Green ~b~=Blue ~w~=White ~y~=Yellow]");
return 1;
}
format(string, sizeof(string), "~r~Chuck Norris: ~w~%s",result);
GameTextForAll(string,5000,6);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Gave the Chuck's CNN: [%s]",d,m,y,h,mi,s,sendername,result);
AnnounceLog(string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "** Nisi u mogucnosti koristiti ovu komandu!");
return 1;
}
}
return 1;
}


Sada imam ova 2 errora

C:\Users\Arsic\Desktop\Cyb3r RolePlay [0.3c]\gamemodes\cyber.pwn(37816) : error 017: undefined symbol "pAdmin"
C:\Users\Arsic\Desktop\Cyb3r RolePlay [0.3c]\gamemodes\cyber.pwn(37844) : error 017: undefined symbol "AnnounceLog"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

2 Errors.

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Mr.Lowrey
5
Godfather
26. Apr. 2011.
nije ti defajnano ovo pAdmin, sto ti nemas admin sistem u modu?
Deleted User
Obrisan korisnik
26. Apr. 2011.
System32 wrote on April 26, 2011, 10:35 pm:
nije ti defajnano ovo pAdmin, sto ti nemas admin sistem u modu?


Ima , vidiš da edita Cyber RP. Mislim da kod njih nije pAdmin već samo Admin.
Nxidza
5
Crime Lord
26. Apr. 2011.
if(strcmp(cmd, "/ccnn", true) == 0) // By CuervO_NegrO 
    { 
        if(IsPlayerConnected(playerid)) 
        { 
          if (PlayerInfo >= 3) 
          { 
 
            new length = strlen(cmdtext); 
            while ((idx < length) && (cmdtext <= ' ')) 
            { 
                idx++; 
            } 
            new offset = idx; 
            new result; 
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) 
            { 
                result[idx - offset] = cmdtext; 
                idx++; 
            } 
            result[idx - offset] = EOS; 
            if(!strlen(result)) 
            { 
                SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /ccnn [cnn textformat ~n~=Newline ~r~=Red ~g~=Green ~b~=Blue ~w~=White ~y~=Yellow]"); 
                return 1; 
            } 
            format(string, sizeof(string), "~r~Chuck Norris: ~w~%s",result); 
            GameTextForAll(string,5000,6); 
            new y, m, d; 
            new h,mi,s; 
            getdate(y,m,d); 
            gettime(h,mi,s); 
            format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Gave the Chuck's CNN: [%s]",d,m,y,h,mi,s,sendername,result); 
            return 1; 
          } 
          else 
          { 
            SendClientMessage(playerid, COLOR_GRAD1, "** Nisi u mogucnosti koristiti ovu komandu!"); 
            return 1; 
          } 
      } 
      return 1; 
    } 
matematicar
4
Enforcer
26. Apr. 2011.
Odlicno...hvalavam puno radi sve 🙂

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha