TechLand Xperia (CLRP Edit)
Detaljan opis problema:
Imam 2 warninga i ne rade komande...
D:\Documents and Settings\Nikola\Desktop\Detroit City RP\gamemodes\CLRP.pwn(39108) : warning 225: unreachable code
D:\Documents and Settings\Nikola\Desktop\Detroit City RP\gamemodes\CLRP.pwn(43079) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 14640 bytes
Code size: 4141192 bytes
Data size: 9801156 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4989 cells (19956 bytes)
Total requirements:13973372 bytes
2 Warnings.
Dio skripte:
Komande su:
if(strcmp("/tune",cmd,true)==0)
{
if(PlayerInfo == 0 || PlayerInfo == 0) return SendClientMessage(playerid,DCPLAVA,": Samo clanovi organizacija/bandi."); return SendClientMessage(playerid,DCPLAVA,": Samo clanovi organizacija/bandi.");
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste vozac!");
return 1;
}
if(PlayerToPoint(5.0,playerid,999.4434,-1089.2135,23.8349) || PlayerToPoint(5.0,playerid,2796.8567,-1545.5630,10.9719) || PlayerToPoint(5.0,playerid,2821.4963,-1544.4954,10.9469) || PlayerToPoint(5.0,playerid,2412.4746,-1474.0664,23.9837) || PlayerToPoint(5.0,playerid,1872.3068,-1868.5648,13.5870))
{
CarmodDialog(playerid);
return 1;
}
else { SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Moras bit u Tuning Garazama!!"); }
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Morate biti u vozilo!");
}
return 1;
}
if (strcmp("/neon", cmdtext, true, 10) == 0)
{
if(PlayerInfo == 0 || PlayerInfo == 0) return SendClientMessage(playerid,DCPLAVA,": Samo clanovi organizacija/bandi."); return SendClientMessage(playerid,DCPLAVA,": Samo clanovi organizacija/bandi.");
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}) Niste vozac!");
return 1;
}
if(PlayerToPoint(5.0,playerid,1034.4844,-1103.4556,23.8281))
{
ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "","Plava\nZelena\nZuta\nBela\nRoza\nCrvena\nBrisanje Neonki","Postavi","Odustani");
}
else { SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}) Niste kod Mehanicara!"); }
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}) Moras biti u vozilu!");
}
return 1;
}
Baca mi warning na linijama:
if(IsPlayerInAnyVehicle(playerid))
i u drugoj komandi opet na istu liniju.
if(IsPlayerInAnyVehicle(playerid))
Da nije to nesto zbog ovoga return SendClientMessage kod provere za org?
Treba staviti mozda return 0; ispod ili slicno?
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Hvala svima 🙂
