[Pomoc]5 errora

Započeo Petar Pan, Avgust 28, 2011, 17:17:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:   penls
Detaljan opis problema:zbauje mi ove errore

error 018: initialization data exceeds declared size
error 029: invalid expression, assumed zero
error 008: must be a constant expression; assumed zero
warning 217: loose indentation
warning 217: loose indentation
error 032: array index out of bounds (variable "JoinPed")
error 032: array index out of bounds (variable "JoinPed")
warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

5 Errors.




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

postaj linije i sve sto je vezano za te errore :/

[BUL]Salvatore

[quote author=[B-City] Petar Pan link=topic=30342.msg229126#msg229126 date=1314544637]
Skripta koju koristim:   penls
Detaljan opis problema:zbauje mi ove errore

error 018: initialization data exceeds declared size
error 029: invalid expression, assumed zero
error 008: must be a constant expression; assumed zero
warning 217: loose indentation
warning 217: loose indentation
error 032: array index out of bounds (variable "JoinPed")
error 032: array index out of bounds (variable "JoinPed")
warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

5 Errors.




Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno)////////////
[/quote]
Pa postaj linije, ne možemo ti ovako pomoći

new JoinPed[15][0] = {
{105},//GSF skinovi
{106},
{107},
{269},
{271},
{270},
{165},//FBI/ATF
{166},
{286},
{287},//NATIONAL_GUARD
{285},
};


i

public OnPlayerText(playerid, text[])
{
if(Mute[playerid] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Ne mozes pricati, utisan si");
return 0;
}
if(SelectChar[playerid] == 255)
{
    new idx;
    new tmp [MAX_PLAYERS];
    tmp = strtok(text, idx);
    if ((strcmp("next", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("next")))
{
    switch (SelectCharID[playerid])
{
case 1: //GSF
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[0][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[1][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[2][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[3][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[4][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[5][0]; }
}
case 2: //FBI/ATF
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[11][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[11][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[12][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[12][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[13][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[13][0]; }
    }
case 3: //National Guard
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[14][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[14][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[15][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[15][0]; }
}


}
             return 0;
}
else if ((strcmp("done", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("done")))
{
    if(ChangePos2[playerid][1] == 1)
    {
        SetPlayerInterior(playerid, ChangePos2[playerid][0]);
        SetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
        ChangePos2[playerid][1] = 0;
        return 0;
    }
    PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
    PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
    SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel],0.0,0.0,0.0,0,0,0,0,0,0,0);
    gTeam[playerid] = PlayerInfo[playerid][pTeam];
SetPlayerToTeamColor(playerid);
MedicBill[playerid] = 0;
SpawnPlayer(playerid);
    SelectCharPlace[playerid] = 0;
    SelectCharID[playerid] = 0;
    SelectChar[playerid] = 0;
    return 0;
}
else
{
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Koristi 'next', ili 'done'.");
    return 0;
}
}

new JoinPed[11][0] = {
{105},//GSF skinovi
{106},
{107},
{269},
{271},
{270},
{165},//FBI/ATF
{166},
{286},
{287},//NATIONAL_GUARD
{285},
};


ostalo mi se nije dalo gledat jer nisi oznacio linije -.-''

Citat: K4[Я]!K3 poslato Avgust 28, 2011, 17:24:29 POSLE PODNE
new JoinPed[11][0] = {
{105},//GSF skinovi
{106},
{107},
{269},
{271},
{270},
{165},//FBI/ATF
{166},
{286},
{287},//NATIONAL_GUARD
{285},
};


ostalo mi se nije dalo gledat jer nisi oznacio linije -.-''

bravo sad imam

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.


E ae kod skina br 285 tog psolednjeg skloni zarez (zapetu) mozda ce raditi :)
Respect to:
Gagi_Corleone
[A]hidrokrilac
_MosT_WanteD_
Gospodin

[quote author=[B-City] Petar Pan link=topic=30342.msg229137#msg229137 date=1314545189]
bravo sad imam

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.

[/quote]
kako skriptas malo je 12 errora :/ i kakve veze imaju ti errori samnom?

edit: @Qwertz - i to :D
Poslednja Izmena: Avgust 28, 2011, 17:29:12 POSLE PODNE od K4[Я]!K3

Citat: Qwertz poslato Avgust 28, 2011, 17:28:06 POSLE PODNE
E ae kod skina br 285 tog psolednjeg skloni zarez (zapetu) mozda ce raditi :)

wow e super radi samo sto mi neda da complie

SLIKA




A da malo ne pametujes drugima nego da krenes da ucis da skriptas ? Kakve veze ima to sto ti je Karike rekao sa tim sto si ti dobio 12 errora ?
Poslednja Izmena: Septembar 04, 2011, 14:55:49 POSLE PODNE od Gotti747
Citat: ...Neno... poslato Januar 26, 2013, 23:31:02 POSLE PODNE
Poceo sam mapati i tu je doslo do problema.Nakon par mapa,vidio sam post Gottia i kaze da nista nevalja da je katastrofa,i pocnemo se svadjati,psovati.Popusimo bananu obojica,i nakon toga nesto sam napravio (mapu) i Gotti kaze dobra,uh reko opet me zajebava,i saljem ja njemu na pm reko ti mene zajebavas,kaze on ne,i pomirimo se.Nakon toga postali smo dosta dobri