[POMOC]ERROR

Započeo Capo, Jun 30, 2013, 23:37:52 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:CHDM
Detaljan opis problema:Znaci, imam jedan error, gledao sam u onoj temi oko errora i warninga, i nisam nasao kako se ovaj rijesava .. pa ako netko moze pomoc
Dio skripte:
        return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

ERROR JE OVAJ : C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(4743) : error 010: invalid function or declaration

Unaprijed hvala :D

pa zasto ti tacno ovo sluzi  jer je ovo glupost ziva ako ovo nekoristis nizasto obrisi
69

heh, tu mi je komanda za war, i sad tu mi na kraju izbacuje error :D


CMD:warpokreni(playerid, params[])
{
new vrijeme, lokacija;
if(PlayerInfo[playerid][pAdmin] < 2)return NisiAdmin(playerid);
    else if(sscanf(params, "ii", vrijeme,lokacija))return Koristi(playerid, "/warpokreni [vrijeme] [lokacija]");
else if(lokacija < 0 || lokacija > 5)return kDM(playerid, "Lokacija mora biti izmedu 1 i 2");
else
    {
SetTimer("Gotovo", Min(vrijeme), false);
brojac = SetTimer("Brojac", 4000, true);
foreach(Player, u)
{
switch(lokacija)
{
    case 0:
    {
if(PlayerInfo[u][war1] == 1)
        {
        SetPlayerPosEx(u, -144.756,-95.067,2.691);
        x_warCR = -144.756;
y_warCR = -95.067;
z_warCR = 2.691;
        GameTextForPlayer(u, "~r~WAR POCEO!", 3000,5);
        ResetPlayerWeapons(u);
                GivePlayerWeapon(u, 4, 1);
                    GivePlayerWeapon(u, 24, 300);
                GivePlayerWeapon(u, 25, 300);
                    GivePlayerWeapon(u, 26, 300);
                GivePlayerWeapon(u, 29, 300);
                GivePlayerWeapon(u, 31, 300);
                GivePlayerWeapon(u, 32, 300);
                SetPlayerVirtualWorld(u, 7);
                SetPlayerHealth(u, 100.0);
        crveni1 = 0;
        }
        if(PlayerInfo[u][war2] == 1)
        {
        SetPlayerPosEx(u, -58.107,119.258,2.680);
        x_warPL = -58.107;
y_warPL = 119.258;
z_warPL = 2.680;
        GameTextForPlayer(u, "~r~WAR POCEO!", 3000,5);
        ResetPlayerWeapons(u);
                GivePlayerWeapon(u, 4, 1);
                    GivePlayerWeapon(u, 24, 300);
                GivePlayerWeapon(u, 25, 300);
                    GivePlayerWeapon(u, 26, 300);
                GivePlayerWeapon(u, 29, 300);
                GivePlayerWeapon(u, 31, 300);
                GivePlayerWeapon(u, 32, 300);
                SetPlayerVirtualWorld(u, 7);
                SetPlayerHealth(u, 100.0);
        plavi1 = 0;
            }
    }
    case 1:
    {
if(PlayerInfo[u][war1] == 1)
        {
        SetPlayerPosEx(u, -1446.498,-1587.382,101.317);
        x_warCR = -1446.498;
y_warCR = -1587.382;
z_warCR = 101.317;
        GameTextForPlayer(u, "~r~WAR POCEO!", 3000,5);
        ResetPlayerWeapons(u);
                GivePlayerWeapon(u, 4, 1);
                    GivePlayerWeapon(u, 24, 300);
                GivePlayerWeapon(u, 25, 300);
                    GivePlayerWeapon(u, 26, 300);
                GivePlayerWeapon(u, 29, 300);
                GivePlayerWeapon(u, 31, 300);
                GivePlayerWeapon(u, 32, 300);
                SetPlayerVirtualWorld(u, 7);
                SetPlayerHealth(u, 100.0);
        crveni1 = 0;
        }
        if(PlayerInfo[u][war2] == 1)
        {
        SetPlayerPosEx(u, -1426.738,-1449.676,101.308);
        x_warPL = -1426.738;
y_warPL = -1449.676;
z_warPL = 101.308;
        GameTextForPlayer(u, "~r~WAR POCEO!", 3000,5);
        ResetPlayerWeapons(u);
                GivePlayerWeapon(u, 4, 1);
                    GivePlayerWeapon(u, 24, 300);
                GivePlayerWeapon(u, 25, 300);
                    GivePlayerWeapon(u, 26, 300);
                GivePlayerWeapon(u, 29, 300);
                GivePlayerWeapon(u, 31, 300);
                GivePlayerWeapon(u, 32, 300);
                SetPlayerVirtualWorld(u, 7);
                SetPlayerHealth(u, 100.0);
        plavi1 = 0;
            }
    }
   
            }
    }
    }
        }
        return 1;
}


eo :D

CMD:warpokreni(playerid, params[])
{
new vrijeme, lokacija;
if(PlayerInfo[playerid][pAdmin] < 2)return NisiAdmin(playerid);
    else if(sscanf(params, "ii", vrijeme,lokacija))return Koristi(playerid, "/warpokreni [vrijeme] [lokacija]");
else if(lokacija < 0 || lokacija > 5)return kDM(playerid, "Lokacija mora biti izmedu 1 i 2");
else
    {
SetTimer("Gotovo", Min(vrijeme), false);
brojac = SetTimer("Brojac", 4000, true);
foreach(Player, u)
{
switch(lokacija)
{
    case 0:
    {
if(PlayerInfo[u][war1] == 1)
        {
        SetPlayerPosEx(u, -144.756,-95.067,2.691);
        x_warCR = -144.756;
y_warCR = -95.067;
z_warCR = 2.691;
        GameTextForPlayer(u, "~r~WAR POCEO!", 3000,5);
        ResetPlayerWeapons(u);
                GivePlayerWeapon(u, 4, 1);
                    GivePlayerWeapon(u, 24, 300);
                GivePlayerWeapon(u, 25, 300);
                    GivePlayerWeapon(u, 26, 300);
                GivePlayerWeapon(u, 29, 300);
                GivePlayerWeapon(u, 31, 300);
                GivePlayerWeapon(u, 32, 300);
                SetPlayerVirtualWorld(u, 7);
                SetPlayerHealth(u, 100.0);
        crveni1 = 0;
        }
        if(PlayerInfo[u][war2] == 1)
        {
        SetPlayerPosEx(u, -58.107,119.258,2.680);
        x_warPL = -58.107;
y_warPL = 119.258;
z_warPL = 2.680;
        GameTextForPlayer(u, "~r~WAR POCEO!", 3000,5);
        ResetPlayerWeapons(u);
                GivePlayerWeapon(u, 4, 1);
                    GivePlayerWeapon(u, 24, 300);
                GivePlayerWeapon(u, 25, 300);
                    GivePlayerWeapon(u, 26, 300);
                GivePlayerWeapon(u, 29, 300);
                GivePlayerWeapon(u, 31, 300);
                GivePlayerWeapon(u, 32, 300);
                SetPlayerVirtualWorld(u, 7);
                SetPlayerHealth(u, 100.0);
        plavi1 = 0;
            }
    }
    case 1:
    {
if(PlayerInfo[u][war1] == 1)
        {
        SetPlayerPosEx(u, -1446.498,-1587.382,101.317);
        x_warCR = -1446.498;
y_warCR = -1587.382;
z_warCR = 101.317;
        GameTextForPlayer(u, "~r~WAR POCEO!", 3000,5);
        ResetPlayerWeapons(u);
                GivePlayerWeapon(u, 4, 1);
                    GivePlayerWeapon(u, 24, 300);
                GivePlayerWeapon(u, 25, 300);
                    GivePlayerWeapon(u, 26, 300);
                GivePlayerWeapon(u, 29, 300);
                GivePlayerWeapon(u, 31, 300);
                GivePlayerWeapon(u, 32, 300);
                SetPlayerVirtualWorld(u, 7);
                SetPlayerHealth(u, 100.0);
        crveni1 = 0;
        }
        if(PlayerInfo[u][war2] == 1)
        {
        SetPlayerPosEx(u, -1426.738,-1449.676,101.308);
        x_warPL = -1426.738;
y_warPL = -1449.676;
z_warPL = 101.308;
        GameTextForPlayer(u, "~r~WAR POCEO!", 3000,5);
        ResetPlayerWeapons(u);
                GivePlayerWeapon(u, 4, 1);
                    GivePlayerWeapon(u, 24, 300);
                GivePlayerWeapon(u, 25, 300);
                    GivePlayerWeapon(u, 26, 300);
                GivePlayerWeapon(u, 29, 300);
                GivePlayerWeapon(u, 31, 300);
                GivePlayerWeapon(u, 32, 300);
                SetPlayerVirtualWorld(u, 7);
                SetPlayerHealth(u, 100.0);
        plavi1 = 0;

            }
    }
    }
        }
       return 1;
}
69

Znaci ubacim ovu tvoju komandu, i sad paf !!

C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2091) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2123) : error 017: undefined symbol "PlayerName"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2126) : error 017: undefined symbol "PlayerName"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2133) : error 017: undefined symbol "PlayerName"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2137) : error 017: undefined symbol "PlayerName"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2143) : error 017: undefined symbol "PlayerName"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2147) : error 017: undefined symbol "OcistiChat"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2153) : error 017: undefined symbol "OnPlayerLogout"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2169) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2177) : error 017: undefined symbol "OcistiChat"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2182) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2191) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2200) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2209) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2220) : error 017: undefined symbol "PlayerName"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2233) : error 017: undefined symbol "PlayerName"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2235) : error 017: undefined symbol "PlayerName"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2236) : error 017: undefined symbol "SendAdminMessage"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2241) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2255) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2276) : error 017: undefined symbol "PlayerName"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2277) : error 017: undefined symbol "SendWarMessage"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2282) : error 017: undefined symbol "PlayerName"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2283) : error 017: undefined symbol "SendWarMessage"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2300) : error 017: undefined symbol "PlayerName"
C:\Users\user\Desktop\GAMEMODE\gamemodes\CHDM.pwn(2335) : error 017: undefined symbol "IsAnIP"

posalji mi mod na pm da ti napravim ovde se zagrade mjesaju kad stavim /code
69

ee evo cacko sam nesta, sad ga nema vise, imam samo jedan warning :D hvala bro :D

Citat: Capo poslato Jul 01, 2013, 00:00:53 PRE PODNE
ee evo cacko sam nesta, sad ga nema vise, imam samo jedan warning :D hvala bro :D
Nista,samo su se zagrade zajebale jer sam iso
69