Sziasztok! Lenne ez a parancsom:
if (strcmp(\"/motor\", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new kocsiid = GetPlayerVehicleID(playerid);
if(engine == 1)
{
GetVehicleParamsEx(kocsiid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(kocsiid, 0,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, 0xff0000AA, \"Real Life RPG: Leállítottad a jármûved motorját !\");
}
if(engine == 0)
{
GetVehicleParamsEx(kocsiid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(kocsiid, 1,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, 0xff0000AA, \"Real Life RPG: Beindítottad a jármûved motorját !\");
}
}else{
SendClientMessage(playerid, 0xff0000AA, \"Real Life RPG: HIBA: Nem te vezeted a jármûvet !\");
}
}else{
SendClientMessage(playerid, 0xff0000AA, \"Real Life RPG: HIBA: Nem ülsz jármûben !\");
}
}
És erre a parancsra hozza ezeket a hibákat, és ezt a warningot
C:\\Users\\AdamBrown\\Desktop\\Montgomery\\gamemodes\\Montgomery.pwn(430) : warning 225: unreachable code
C:\\Users\\AdamBrown\\Desktop\\Montgomery\\gamemodes\\Montgomery.pwn(438) : error 017: undefined symbol \"engine\"
C:\\Users\\AdamBrown\\Desktop\\Montgomery\\gamemodes\\Montgomery.pwn(440) : error 017: undefined symbol \"engine\"
C:\\Users\\AdamBrown\\Desktop\\Montgomery\\gamemodes\\Montgomery.pwn(441) : error 017: undefined symbol \"lights\"
C:\\Users\\AdamBrown\\Desktop\\Montgomery\\gamemodes\\Montgomery.pwn(444) : error 017: undefined symbol \"engine\"
C:\\Users\\AdamBrown\\Desktop\\Montgomery\\gamemodes\\Montgomery.pwn(446) : error 017: undefined symbol \"engine\"
C:\\Users\\AdamBrown\\Desktop\\Montgomery\\gamemodes\\Montgomery.pwn(447) : error 017: undefined symbol \"lights\"
Légyszives segítsetek kijavítani, akié jó lesz megy a +