[pomoc] Nece compile :(

Započeo [PAL]Emir
25. Sep. 2011. Zaključano
555
pregleda
5
postova
Emir_Odobasic
4
Shot Caller
25. Sep. 2011.
Skripta koju koristim:FactionGame
Opis problema: imam problem sa skriptom prije 2 dana mi nije ni jedan error izbacilo a nisam nista ubacio i ja sada udjem kad ono ima 7 errora evo koji su
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(15085) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(15100) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(23076) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(23114) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(23152) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(24493) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(26344) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(52009) : error 021: symbol already defined: "NameTimer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

7 Errors.
FyoDoR
4
Shot Caller
25. Sep. 2011.
daj nam linije errora
Emir_Odobasic
4
Shot Caller
25. Sep. 2011.
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string <= ' ')) ovo je prvi error
{
index++;
}

new offset = index;
new result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}
            ovo je drugi

else if(strcmp(x_nr,"lock1",true) == 0)
        {
                new keycar = PlayerInfo;
                if(keycar != 999)
                {
                    new locked;
                    locked = strtok(cmdtext, idx);
                    if(CarInfo == 1)
                    {                          ovo je treci error i imaju jos 2 ovakva ista
foreach (Player, i)
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
format(string, sizeof(string), "~w~Vozilo~n~~g~Otkljucano");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo = 0;
OnPropUpdate();
return 1;
}

if(strcmp(cmd,"/creategun",true)==0 || strcmp(cmd,"/napravioruzije",true)==0) // By Ellis
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "  Morate se prvo prijaviti !");
            return 1;
        }
        if(PlayerInfo != 23)
{
    SendClientMessage(playerid, COLOR_GREY, "  Niste proizvodjac oruzija. ");
    return 1;
}
new x_weapon;
x_weapon = strtok(cmdtext, idx);
if(!strlen(x_weapon))
ovo je peti error
    SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
    SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /napravioruzije [ime oruzija]");
    SendClientMessage(playerid, COLOR_GREY, "Oruzije: noz(25) palica(25) sdpistolj(100) dezert(200)");
    SendClientMessage(playerid, COLOR_GREY, "Oruzije: hekler(200) pomparica(200) kalas(500) m4(500) puska(500) snajper(1500)");
    SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
    return 1;
}

public NameTimer()
{
foreach (Player, i)
i ovo je 6 error
foreach (Player, q)
{
new Float:p1x;
new Float:p1y;
new Float:p1z;
new Float:p2x;
new Float:p2y;
new Float:p2z;
if(IsPlayerConnected(i) && IsPlayerConnected(q))
{
GetPlayerPos(i,p1x,p1y,p1z);
    GetPlayerPos(q,p2x,p2y,p2z);
if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
{
if(PlayerInfo != 1)
    {
ShowPlayerNameTagForPlayer(i,q,1);
}
    }
else
{
ShowPlayerNameTagForPlayer(i,q,0);
                }
            }
        }
}
}

a ima jos jedan warning to i ne trrebam uredjivat
pavle.bakun
5
Crime Lord
25. Sep. 2011.
NameTimer
Za ostalo daj nam linije.
Emir_Odobasic
4
Shot Caller
25. Sep. 2011.
uredu je sve napravio samm

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha