[Pomoc] Puno Errora i Warninga, hitno!

Započeo V_More, Novembar 21, 2011, 23:10:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim: Neotion TDM od vanilla.pwn
Detaljan opis problema: Imam puno errora, sve sy ovi sa kao assumed zero i is not implemented, moze mi hitno neko reci u cemu je problem i zasto se pojavljuje na svakom?
Dio skripte: 
Errori:
error 029: invalid expression, assumed zero
error 004: function "OnPlayerConnect" is not implemented
warning 219: local variable "string" shadows a variable at a preceding level
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerDisconnect" is not implemented
error 017: undefined symbol "reason"
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnVehicleDeath" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerSpawn" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerDeath" is not implemented
error 017: undefined symbol "reason"
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerText" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "zcmd_OnPlayerCommandText" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "drawkapat" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerEnterVehicle" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerExitVehicle" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerEnterCheckpoint" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerPickUpPickup" is not implemented

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

sta si zadnje dodavao, zaboravio si neku od zagrada { ili } Prebroji u tom sto si dodavao zagrade i ako je neparan broj dodaj zagradu.
Moras imati isti broj { i isti broj } zagrada.

Sad je ono nestalo, kad sam dodao zagrade, ali sad ima ovo:
Errori:
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 054: unmatched closing brace ("}")

Dio gdje su ti errori:
{
} if(gTeam[playerid] == TEAM_GreenMafia) {
SetPlayerColor(playerid,COLOR_GREEN);
} else if(gTeam[playerid] == TEAM_Purple_Family) {
   SetPlayerColor(playerid,COLOR_PURPLE);
} else if(gTeam[playerid] == TEAM_Macros) {
   SetPlayerColor(playerid,COLOR_YELLOW);
} else if(gTeam[playerid] == TEAM_The_Blue_Boys) {
   SetPlayerColor(playerid,COLOR_BLUELIGHT);
} else if(gTeam[playerid] == TEAM_LSPD) {
   SetPlayerColor(playerid,COLOR_GOLD);
   } else if(gTeam[playerid] == TEAM_Italian_Mafia) {
   SetPlayerColor(playerid,COLOR_BLACK);
   } else if(gTeam[playerid] == TEAM_Angry_Racers) {
   SetPlayerColor(playerid,COLOR_AQUA);
   } else if(gTeam[playerid] == TEAM_Triads) {
   SetPlayerColor(playerid,COLOR_GRAYDARK);
} else if(gTeam[playerid] == TEAM_Russia_Maffa) {
   SetPlayerColor(playerid,COLOR_BROWN);

}







Ovo gore sam sad sam rijesio, ali sad imam ovo:
(542) : error 029: invalid expression, assumed zero
(544) : error 029: invalid expression, assumed zero
(544) : error 001: expected token: ";", but found "if"
(544) : error 029: invalid expression, assumed zero
(544) : fatal error 107: too many error messages on one line


Za ovaj dio ovdje: (od 540-561 linije)
public SetPlayerToTeamColor(playerid)
{
{ if(gTeam[playerid] == TEAM_GreenMafia) }
SetPlayerColor(playerid,COLOR_GREEN);
{ else if(gTeam[playerid] == TEAM_Purple_Family) }
    SetPlayerColor(playerid,COLOR_PURPLE);
{ else if(gTeam[playerid] == TEAM_Macros) }
    SetPlayerColor(playerid,COLOR_YELLOW);
{ else if(gTeam[playerid] == TEAM_The_Blue_Boys) }
    SetPlayerColor(playerid,COLOR_BLUELIGHT);
{ else if(gTeam[playerid] == TEAM_LSPD) }
    SetPlayerColor(playerid,COLOR_GOLD);
    { else if(gTeam[playerid] == TEAM_Italian_Mafia) }
    SetPlayerColor(playerid,COLOR_BLACK);
    { else if(gTeam[playerid] == TEAM_Angry_Racers) }
    SetPlayerColor(playerid,COLOR_AQUA);
    { else if(gTeam[playerid] == TEAM_Triads) }
    SetPlayerColor(playerid,COLOR_GRAYDARK);
{ else if(gTeam[playerid] == TEAM_Russia_Maffa) }
    SetPlayerColor(playerid,COLOR_BROWN);

}
Poslednja Izmena: Novembar 21, 2011, 23:33:43 POSLE PODNE od |BU| Nick_Makaveli
Last nick: Vectro64

Daj mi jednu od ovih definicija TEAM_GreenMafia ili TEAM_Purple_Family
nadji gore new TEAM_Purple_Family ili #define TEAM_Purple_Family pa postaj ovdje

#define TEAM_GreenMafia 0
#define TEAM_Purple_Family 1
#define TEAM_Macros 2
#define TEAM_The_Blue_Boys 3
#define TEAM_LSPD 4
#define TEAM_Italian_Mafia 5
#define TEAM_Russia_Maffa 6
#define TEAM_Angry_Racers 7
#define TEAM_Balkan_Mafia 8
#define TEAM_Triads 9


Evo
Last nick: Vectro64

Nick, iznenadjujes me dosta... nemozes da stavljas zagrade gde ti ce cefne... evo ti ona donaj skripta...


public SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_GreenMafia)
{
SetPlayerColor(playerid,COLOR_GREEN);
}
else if(gTeam[playerid] == TEAM_Purple_Family)
{
SetPlayerColor(playerid,COLOR_PURPLE);
}
else if(gTeam[playerid] == TEAM_Macros)
{
SetPlayerColor(playerid,COLOR_YELLOW);
}
else if(gTeam[playerid] == TEAM_The_Blue_Boys) }
{
SetPlayerColor(playerid,COLOR_BLUELIGHT);
}
else if(gTeam[playerid] == TEAM_LSPD)
{
SetPlayerColor(playerid,COLOR_GOLD);
}
else if(gTeam[playerid] == TEAM_Italian_Mafia)
{
SetPlayerColor(playerid,COLOR_BLACK);
}
else if(gTeam[playerid] == TEAM_Angry_Racers)
{
SetPlayerColor(playerid,COLOR_AQUA);
}
else if(gTeam[playerid] == TEAM_Triads)
{
SetPlayerColor(playerid,COLOR_GRAYDARK);
}
else if(gTeam[playerid] == TEAM_Russia_Maffa)
{
SetPlayerColor(playerid,COLOR_BROWN);
}
}


sad pogledaj kako je tu uradjeno i to uradi sa gornjom...
Poslednja Izmena: Novembar 21, 2011, 23:48:35 POSLE PODNE od [A]Maki187

Hvala ti velika, inace ovo mi je prva skripta tako da te nemam sta iznenadjivati :D
Last nick: Vectro64

np, zasto sam ja mislio da si i ranije pravio nesto... mozda sam nesto sa bu foruma pobrkao  :D

btw, ako neznas gornju da namestis, reci uradicu ti ja ili neko odavde, al bolje da ti pokusas, kako bi naucio za ubuduce... :)

Citat: [A]Maki187 poslato Novembar 21, 2011, 23:59:32 POSLE PODNE
np, zasto sam ja mislio da si i ranije pravio nesto... mozda sam nesto sa bu foruma pobrkao  :D

btw, ako neznas gornju da namestis, reci uradicu ti ja ili neko odavde, al bolje da ti pokusas, kako bi naucio za ubuduce... :)

ma ok, nego mozes i ovdje da pomognes:

http://balkan-samp.com/forum/index.php?topic=33481.0

Auto se porta ne mene i ne mogu se onda kretati, a i moze iako nisi admin.
Last nick: Vectro64

Citat: |BU| Nick_Makaveli poslato Novembar 22, 2011, 00:01:07 PRE PODNE
Citat: [A]Maki187 poslato Novembar 21, 2011, 23:59:32 POSLE PODNE
np, zasto sam ja mislio da si i ranije pravio nesto... mozda sam nesto sa bu foruma pobrkao  :D

btw, ako neznas gornju da namestis, reci uradicu ti ja ili neko odavde, al bolje da ti pokusas, kako bi naucio za ubuduce... :)

ma ok, nego mozes i ovdje da pomognes:

http://balkan-samp.com/forum/index.php?topic=33481.0

Auto se porta ne mene i ne mogu se onda kretati, a i moze iako nisi admin.

Ne moze ako nisi admin, samo RCON admin moze ono da uradi....
Kada muškarac priča ženi bezobrazne stvari, to je seksualno uznemiravanje…
A kada žena to radi muškarcu to je 2 eura+PDV po minuti. :D


CMD:vozilo(playerid,params[])
{
   new Float:Pos[4];
   if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"nene");
   GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
   CreateVehicle(579,Pos[0],Pos[1],Pos[2],Pos[3],random(126),random(126),500);
   return true;
}


Probaj sad... odo na spavanje  :D

sad se moras ulogovati kao rcon da bi koristio tu komandu... btw, ovo vozilo ce moci i drugi da voze...