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 :D
Dio skripte: Ovo je komanda :
if(strcmp(cmd, "/ccnn", true) == 0) // By CuervO_NegrO
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 6)
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
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, "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):
nije ti defajnano ovo pAdmin, sto ti nemas admin sistem u modu?
Citat: System32 poslato April 27, 2011, 00:35:59 PRE PODNE
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.
if(strcmp(cmd, "/ccnn", true) == 0) // By CuervO_NegrO
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][Admin] >= 3)
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
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, "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;
}
Odlicno...hvalavam puno radi sve :)