[HELP]Warning 225: unreachable code -
darksimo - 28.04.2012
Hi,I have a problem,in my GM when i compile, it gets this warning at line 25600 (third SendClientMessage)
pawn Код:
{
SendClientMessage(playerid,COLOR_RED,"[INFO:] Non sei loggato per utilizzare questo comando");
SendClientMessage(playerid,COLOR_RED,"[INFO:] Effettua il login/registrazione");
return 1;
}
SendClientMessage(playerid,WHITE,"[INFO:] Comando invalido, digita /aiuto per la lista");
return 1;
}
If I add an open bracket over SendClientMessage it send me a lot of Warnings and Errors.
Please help!!
Please MODS,move this in Scripting Discussion,please
Re: [HELP]Warning 225: unreachable code -
Face9000 - 28.04.2012
Vedo che sei italiano,anche io.Quel "comando invalido" suppongo sia il messaggio d'errore quando i players scrivono un comando che non esiste vero?Allora devi spostarlo,tipo cosi:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
//Comandi
return SendClientMessage(playerid,WHITE,"[INFO:] Comando invalido, digita /aiuto per la lista");
}
Re: [HELP]Warning 225: unreachable code -
darksimo - 28.04.2012
Sм,ma il problema и che fino a poco fa funzionava.. Vabbй.
Comunque ho fatto come mi hai detto. La situazione и peggiorata!
Код:
(2278) : error 017: undefined symbol "ShowServerPassword"
(2291) : error 017: undefined symbol "GetPlayerSpeed"
(2329) : error 004: function "LoadCar" is not implemented
(2351) : error 017: undefined symbol "CreateMapIcon"
(2352) : error 017: undefined symbol "CreateMapIcon"
(2353) : error 017: undefined symbol "CreateMapIcon"
(2354) : error 017: undefined symbol "CreateMapIcon"
(2355) : error 017: undefined symbol "CreateMapIcon"
(2356) : error 017: undefined symbol "CreateMapIcon"
(2357) : error 017: undefined symbol "CreateMapIcon"
(2358) : error 017: undefined symbol "CreateMapIcon"
(2359) : error 017: undefined symbol "CreateMapIcon"
(4077) : error 004: function "FixHour" is not implemented
(4110) : error 004: function "CreateStreamPickup" is not implemented
(4111) : error 004: function "CreateStreamPickup" is not implemented
(4112) : error 004: function "CreateStreamPickup" is not implemented
(4113) : error 004: function "CreateStreamPickup" is not implemented
(4114) : error 004: function "CreateStreamPickup" is not implemented
(4115) : error 004: function "CreateStreamPickup" is not implemented
(4381) : error 004: function "LoadPapers" is not implemented
(4382) : error 004: function "LoadStuff" is not implemented
(4383) : error 004: function "LoadCar" is not implemented
(4384) : error 004: function "LoadTrunk" is not implemented
(4628) : error 004: function "OnPropUpdate" is not implemented
(4631) : error 004: function "OnPlayerDataSave" is not implemented
(4672) : error 004: function "KickPlayer" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Re: [HELP]Warning 225: unreachable code -
Face9000 - 28.04.2012
Incollami il comando intero,cosi vedo.
Re: [HELP]Warning 225: unreachable code -
darksimo - 28.04.2012
Che comando?
Re: [HELP]Warning 225: unreachable code -
Face9000 - 28.04.2012
Quello a cui ti da errore.Hai postato solo l'ultima parte,a me serve il comando intero per capirci di piu'.
Re: [HELP]Warning 225: unreachable code -
darksimo - 28.04.2012
Ah,ok!
pawn Код:
if(strcmp(cmd, "/comandiadmin", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 1]: - (/A)dmin - /Goto - /Fly - /Gethere - /Warn - /Muta - /Trova - /Aduty - /Kick - /Autokill - /Infoserver - /Maschere");
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 1]: - /blocca - /sblocca - /cnnn - /Gotolv - /Gotosf - /Gotols - /Fixveh - /Settaskin - /Settamondovirtuale - /Slap - /ricaricarapine");
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 1]: - /bloccorapinac - /bloccorapinab");
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 2]: /Banna - /Ascoltachat - /Ajail - /spec - /specoff - /SettaInterior - /RimuoviArmi");
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 3]: /Listafazioni");
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 4]: /Settavita - /Settaarmatura - /Riempiautobenzina - /Settadroga - /Settamateriali - /Settaprodotti - /Auto");
}
if (PlayerInfo[playerid][pAdmin] >= 5)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 5]: /Donatore - /Settasoldi - /settaarma - /respawn - /Resettacell - /gotoauto - /gotocoord - /EntraAuto - /kickaclan - /kickff");
}
if (PlayerInfo[playerid][pAdmin] >= 6)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 6]: ");
}
if (PlayerInfo[playerid][pAdmin] >= 7)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 7]: /ComandiCasaAdmin - /ComandiBizAdmin - /ApriTutteAuto - /Sbanna - /Sbannaip");
}
if (PlayerInfo[playerid][pAdmin] >= 8)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 8]: ");
}
if (PlayerInfo[playerid][pAdmin] >= 9)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 9]: ");
}
if (PlayerInfo[playerid][pAdmin] >= 10)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 10]: /SettaStats /kicktutti - /ComandiBuildingAdmin - /ComandiFazioneAdmin - /CreaAuto - /Concessionario - /Resetlotto");
}
if (PlayerInfo[playerid][pAdmin] >= 21)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 21]: /SettaAdmin - /SettaHelper - /SettaCapoFazione - /Resettafazione - /Settaspawncivili - /ComandiLavoriAdmin - /Settameteo - /Settaora - /CambiaNumero");
}
return 1;
}
else
{
SendClientMessage(playerid,COLOR_RED,"[INFO:] Non sei loggato per utilizzare questo comando");
SendClientMessage(playerid,COLOR_RED,"[INFO:] Effettua il login/registrazione");
return 1;
}
SendClientMessage(playerid,WHITE,"[INFO:] Comando invalido, digita /aiuto per la lista");
return 1;
}
public OnPlayerRegister(playerid, password[])
{
Re: [HELP]Warning 225: unreachable code -
Face9000 - 29.04.2012
Prova cosi:
pawn Код:
if(strcmp(cmd, "/comandiadmin", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 1]: - (/A)dmin - /Goto - /Fly - /Gethere - /Warn - /Muta - /Trova - /Aduty - /Kick - /Autokill - /Infoserver - /Maschere");
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 1]: - /blocca - /sblocca - /cnnn - /Gotolv - /Gotosf - /Gotols - /Fixveh - /Settaskin - /Settamondovirtuale - /Slap - /ricaricarapine");
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 1]: - /bloccorapinac - /bloccorapinab");
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 2]: /Banna - /Ascoltachat - /Ajail - /spec - /specoff - /SettaInterior - /RimuoviArmi");
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 3]: /Listafazioni");
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 4]: /Settavita - /Settaarmatura - /Riempiautobenzina - /Settadroga - /Settamateriali - /Settaprodotti - /Auto");
}
if (PlayerInfo[playerid][pAdmin] >= 5)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 5]: /Donatore - /Settasoldi - /settaarma - /respawn - /Resettacell - /gotoauto - /gotocoord - /EntraAuto - /kickaclan - /kickff");
}
if (PlayerInfo[playerid][pAdmin] >= 6)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 6]: ");
}
if (PlayerInfo[playerid][pAdmin] >= 7)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 7]: /ComandiCasaAdmin - /ComandiBizAdmin - /ApriTutteAuto - /Sbanna - /Sbannaip");
}
if (PlayerInfo[playerid][pAdmin] >= 8)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 8]: ");
}
if (PlayerInfo[playerid][pAdmin] >= 9)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 9]: ");
}
if (PlayerInfo[playerid][pAdmin] >= 10)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 10]: /SettaStats /kicktutti - /ComandiBuildingAdmin - /ComandiFazioneAdmin - /CreaAuto - /Concessionario - /Resetlotto");
}
if (PlayerInfo[playerid][pAdmin] >= 21)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LIVELLO 21]: /SettaAdmin - /SettaHelper - /SettaCapoFazione - /Resettafazione - /Settaspawncivili - /ComandiLavoriAdmin - /Settameteo - /Settaora - /CambiaNumero");
}
if (PlayerInfo[playerid][pAdmin] = 0)
{
SendClientMessage(playerid,COLOR_RED,"[INFO:] Non sei loggato per utilizzare questo comando");
SendClientMessage(playerid,COLOR_RED,"[INFO:] Effettua il login/registrazione");
}
return 1;
}
else return SendClientMessage(playerid,WHITE,"[INFO:] Comando invalido, digita /aiuto per la lista");
Re: [HELP]Warning 225: unreachable code -
darksimo - 29.04.2012
Si и verificato un errore...
Comunque quegli errors che mi vengono mi preoccupano...
Re: [HELP]Warning 225: unreachable code -
Face9000 - 29.04.2012
Si и normale perchи c'и qualcosa che non va.Che errore ti da adesso?