Problem(error/warning): Zadnje sto sam radio jeste test admin, medjutim sve sam dobro uradio i namjestio sam neke cmd koje ce on koristit, medjutim u ycmd:flip , mi se pojavljuje error, a ne shvatam sta je greska
Deo skripte: [pawn]/// OVO SU ERRORI
C:\Users\Danis\Desktop\San Abbacy x1.6\gamemodes\abbacy.pwn(28959) : error 001: expected token: ")", but found "-identifier-"
C:\Users\Danis\Desktop\San Abbacy x1.6\gamemodes\abbacy.pwn(28959) : warning 215: expression has no effect
C:\Users\Danis\Desktop\San Abbacy x1.6\gamemodes\abbacy.pwn(28959) : error 001: expected token: ";", but found ")"
C:\Users\Danis\Desktop\San Abbacy x1.6\gamemodes\abbacy.pwn(28959) : error 029: invalid expression, assumed zero
C:\Users\Danis\Desktop\San Abbacy x1.6\gamemodes\abbacy.pwn(28959) : fatal error 107: too many error messages on one line[/pawn]
[pawn]
/////// Komanda u kojoj je error
YCMD:flip(playerid, params[],help)
{
#pragma unused help
if(UlogovanProvera[playerid] == 0) return SCM(playerid, -1, ""BELA"ERROR: "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(GetTimeEx() < gKomanda[playerid]) return SCM(playerid, -1, ""CRVENA"Ovu komandu mozete koristiti svakih 10 sekundi!");
if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,""SRWBOJA"[SA]"SIVA"Morate biti u vozilu da koristite ovu komandu!");
if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pGM] == 0 PlayerInfo[playerid][pTestAdmin] == 0)
{
new string[128];
new VehicleID, Float:CX, Float:CY, Float:CZ, Float:CA;
GetPlayerPos(playerid, CX, CY, CZ);
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, CX, CY, CZ);
GetVehicleZAngle(VehicleID, CA);
SetVehicleZAngle(VehicleID, CA);
format(string,sizeof(string),""ZUTA"A | "BELA"%s je koristio /flip!",GetName(playerid));
AdminGameMaster(-1, string);
gKomanda[playerid] = GetTimeEx() + 10;
{
SCM(playerid, -1, "[SA]"ZUTA"Samo Admini & GameMasteri!");
}
return 1;
}
[/pawn]
[pawn] /// I ovo linija
if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pGM] == 0 PlayerInfo[playerid][pTestAdmin] == 0)[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): Nista ovo
Slika/video ingame problema(obavezno ako je ingame problem): Nije potrebno
Ovo gore sam rijesio ipak, medjutim sad mi se ovi errori pojavljuju...
[pawn]C:\Users\Danis\Desktop\San Abbacy x1.6\gamemodes\abbacy.pwn(28977) : error 017: undefined symbol "@yC_asvima"
C:\Users\Danis\Desktop\San Abbacy x1.6\gamemodes\abbacy.pwn(28977) : error 017: undefined symbol "@yC_asvima"
C:\Users\Danis\Desktop\San Abbacy x1.6\gamemodes\abbacy.pwn(28977) : error 017: undefined symbol "i"
C:\Users\Danis\Desktop\San Abbacy x1.6\gamemodes\abbacy.pwn(28977) : fatal error 107: too many error messages on one line[/pawn]
[pawn]YCMD:asvima(playerid, params[],help)
{
#pragma unused help
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""CRVENA"[SA]"CRVENA"Morate biti ulogovani da bi koristili komande!");
if(PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid, -1, ""CRVENA"[SA]"SIVA"Niste ovlasceni da koristite ovu komandu!");
if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[SA]"SIVA"Morate biti na Admin duznosti!");
foreach(Player, i)
{
if(PlayerInfo[pTrazeniLevel] > 0)
{
PlayerInfo[pTrazeniLevel] = 0; SetPlayerWantedLevel(i,0);
strmid(ZlocinInfo[zPrijavio], "Nema", 0, strlen("Nema"), 255);
strmid(ZlocinInfo[zPocinio], "Nema", 0, strlen("Nema"), 255);
strmid(ZlocinInfo[zZlocin], "Nema", 0, strlen("Nema"), 255);
BelaBojaIgraca(i);
}
}
new string[256];
format(string,sizeof(string),""ZUTA"[SA]"ZUTA" (( Admin %s je ocistio wanted level svima! ))", GetName(playerid));
SCMTA(-1,string);
return 1;
}[/pawn]
[pawn]/// I ovo je linija
YCMD:asvima(playerid, params[],help)[/pawn]
[pawn]
YCMD:flip(playerid, params[],help)
{
#pragma unused help
if(UlogovanProvera[playerid] == 0) return SCM(playerid, -1, ""BELA"ERROR: "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(GetTimeEx() < gKomanda[playerid]) return SCM(playerid, -1, ""CRVENA"Ovu komandu mozete koristiti svakih 10 sekundi!");
if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,""SRWBOJA"[SA]"SIVA"Morate biti u vozilu da koristite ovu komandu!");
if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pGM] == 0 && PlayerInfo[playerid][pTestAdmin] == 0)
{
new string[128];
new VehicleID, Float:CX, Float:CY, Float:CZ, Float:CA;
GetPlayerPos(playerid, CX, CY, CZ);
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, CX, CY, CZ);
GetVehicleZAngle(VehicleID, CA);
SetVehicleZAngle(VehicleID, CA);
format(string,sizeof(string),""ZUTA"A | "BELA"%s je koristio /flip!",GetName(playerid));
AdminGameMaster(-1, string);
gKomanda[playerid] = GetTimeEx() + 10;
}
else return SCM(playerid, -1, "[SA]"ZUTA"Samo Admini & GameMasteri!");
return 1;
}[/pawn]
@ShomyJedinka ziv bio <3, lock !