Skripta koju koristim:croserbia
Detaljan opis problema: Kod mene vise Compiler ne radi :'( :'( e neznam kako da popravim
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
PLSS POMAZITE STO PRIJE
Kako mislis ne radi ?
Pa ocu Compile i odjednom Pawno Compiler Library didn't respond... il kako vec neznam privest kako treba na engleski jer imam na njemacki xD
Citat: Zenga1998 poslato Maj 16, 2011, 18:28:08 POSLE PODNE
Pa ocu Compile i odjednom Pawno Compiler Library didn't respond... il kako vec neznam privest kako treba na engleski jer imam na njemacki xD
sta si zadnje dodavao prepuno ti je errora
to sam dodao..
if(strcmp(cmd, "/headadmin", true) == 0 || strcmp(cmd, "/he", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
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, "KORISTITE: (/he)adadmin [headadmin chat]");
return 1;
}
format(string, sizeof(string), "*HeadAdmin %s: %s", PlayerInfo[playerid][pAdmin], sendername, result);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendAdminMessage(PLAVA, string);
}
printf("HeadAdmin %s: %s", sendername, result);
}
return 1;
}
ne znam ja bas skriptati..ali to ti kazem za pawno izbrisi to pa probaj compile ;D videces da tu u toj komandi imas puno gresaka :D
izbriso sam i opet isto :'(
Citat: Zenga1998 poslato Maj 16, 2011, 18:31:46 POSLE PODNE
izbriso sam i opet isto :'(
Od zadnjeg puta kada si uradio Compile...sta si posle dodavao? to izbrisi ili pokusaj ispraviti
sad sam malo prije sve izbriso sta sam dodo bio i opet nece
Citat: Zenga1998 poslato Maj 16, 2011, 18:39:08 POSLE PODNE
sad sam malo prije sve izbriso sta sam dodo bio i opet nece
jesi li ono sto si definisao..i ako si ista definisao jesi li to izbrisao??
ma bio definiso 2 boje tj ADPLAVA i PLAVA dali idem isprobat dali moze kad to izbrisem + /he
EDIT: Opet nece :S Neznam sta da radim :SSSSSSSSSSSSS
SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: (/he)adadmin [headadmin chat]");
return 1;
Ovo izbaci iz komande... Komanda ima gresaka i to ti crashuje pawnocc.. to se i meni desavalo kad sam pravio /advertise.. :/ Izbaci komandu i izbaci ono pre toga sto si radio pa stisni "compile".. ima gresaka u nekoj komadni sto si pravio i to ti crashuje pawnocc... naravno posle ce ti biti dosta warninga "lose indentation".. to znaci da poravnas redove.. ali otom potom.. prvo ovo resi..
Znaci oto sta si ti metnio i sve preko toga il sta.. nekuzim o.O.
Daj ako mores sredi otu komandu kako treba... ja sam ono izbriso sta si ti reko al opet nece compile
Citat: Zenga1998 poslato Maj 16, 2011, 19:35:39 POSLE PODNE
Znaci oto sta si ti metnio i sve preko toga il sta.. nekuzim o.O.
Daj ako mores sredi otu komandu kako treba... ja sam ono izbriso sta si ti reko al opet nece compile
Moras izbacit komandu i jesi li pravio neku komandu pre ove?
Ne mozes nista uradit dok ne izbacis komandu koja ti je blokirala pawnocc.. :/ imao sam slican problem
imam /a admin chat evo ti za obe skripta
if(strcmp(cmd, "/admin", true)==0 || strcmp(cmd, "/a", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
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))
format(string, sizeof(string), "*%d Admin %s: %s", PlayerInfo[playerid][pAdmin], sendername, result);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendAdminMessage(ORANGE, string);
}
printf("Admin %s: %s", sendername, result);
}
return 1;
}
if(strcmp(cmd, "/headadmin", true) == 0 || strcmp(cmd, "/he", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1338)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
format(string, sizeof(string), "*%d HeadAdmin %s: %s", PlayerInfo[playerid][pAdmin], sendername, result);
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
SendAdminMessage(plava, string);
}
printf("Admin %s: %s", sendername, result);
}
return 1;
}
xD pa tu se sve zbunjuje.. tamo onda kod /a moras da stavis od 1 do 1338.. a ovde kod /headadmin preko 1338..
A zar ti nije lakse da napravis "txt" komandu za headadmine... dacu ti skriptu za koji minut.. idem sad da jedem.. xDD
ok hvala caree :D
Evo ti citava komanda za to: NAPOMENA: Umesto tvoja komanda stavi /he ili sta vec zelis.. ;) :D
if(strcmp(cmd, "/tvoja komanda", true) == 0) // By Lane_Hudson ----- umesto moja komanda stavi neku komandu( U tvom slucaju /he)
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
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;
idx++;
if(!strlen(result)) return SendClientMessage(playerid, COLOR_GREY, "KORISTI: /tvoja komanda [text]");
format(string, sizeof(string), "* Head Admin %s: %s ",sendername,(result));
SendClientMessageToAll(0x2587CEFF, string);
format(string, sizeof(string), "[HEAD ADMIN]: %s pise u Konzoli: [%s]", sendername, (result));
ABroadCast(COLOR_LIGHTRED,string, 5);
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 Wrote a White Message At the Console: [Message: %s]",d,m,y,h,mi,s,sendername,(result));
AdminLog(string);
}
return 1;
}
Citat: Lane_Hudson poslato Maj 16, 2011, 19:55:18 POSLE PODNE
Evo ti citava komanda za to: NAPOMENA: Umesto tvoja komanda stavi /he ili sta vec zelis.. ;) :D
if(strcmp(cmd, "/tvoja komanda", true) == 0) // By Lane_Hudson ----- umesto moja komanda stavi neku komandu( U tvom slucaju /he)
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
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;
idx++;
if(!strlen(result)) return SendClientMessage(playerid, COLOR_GREY, "KORISTI: /tvoja komanda [text]");
format(string, sizeof(string), "* Head Admin %s: %s ",sendername,(result));
SendClientMessageToAll(0x2587CEFF, string);
format(string, sizeof(string), "[HEAD ADMIN]: %s pise u Konzoli: [%s]", sendername, (result));
ABroadCast(COLOR_LIGHTRED,string, 5);
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 Wrote a White Message At the Console: [Message: %s]",d,m,y,h,mi,s,sendername,(result));
AdminLog(string);
}
return 1;
}
- By Govn0 Moje
Daj molim te komanda nije tvoja , tako da te nestavljaj creditse sebi da si napravio komandu , jer nisi komandu ni pipnio , samo je preveo.
jos uvjek crasha... dali je do /a?
Pa nesto sto si napravio pre /he je sigurno.. :/ Izbaci komande koje si pravio tj izbacuj i compilaj dok ne otkrijes koja je.. :/
diro sam GM chat.. dali je do toga.. evo script... jbgg novi sam skripter pa tak da jos neznam dobro sry ://
if(strcmp(cmd, "/g", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
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, "KORISTITE: /g [game master chat]");
return 1;
}
format(string, sizeof(string), "*%d Game Master %s: %s", PlayerInfo[playerid][pGameMaster], sendername, result);
if (PlayerInfo[playerid][pGameMaster] >= 1)
SendAdminMessage(COLOR_LIGHTGREEN, string);
}
printf("GameMaster %s: %s", sendername, result);
}
return 1;
}
Hmmm dobar je chat.. znas kako uradi.. skini novi mod sa novim compilerom... :/ ili skini samo novi mod pa kopiraj .pwn skroz.. :/
http://www.sa-mp.com/download.php odaberi download samp windows server tu i skini sve pa uzmi kopiraj scriptfiles, filterscripts i plugins i ubaci ovo sto skines.. :P
Sve teme koje budu imale npr. "[Pomoc] Potrebna pomoc" ce biti lockane jer u naslovu ne navode za sto im je potrebna pomoc
da admin chat ostavim kaki je il da ga napravim isto ko /he