Hy all pls segítsetek mondom h mi a gondom:S:
van egy ilyenem a playercommandtext-nél h :
new VehicleID = GetPlayerVehicleID(playerid);
aztán beraktam egy telét
de elötte igy volt:
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(320) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(322) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(325) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(329) : warning 225: unreachable code
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(334) : warning 225: unreachable code
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(300) : warning 204: symbol is assigned a value that is never used: \"VehicleID\"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Warnings.
ha beraktam a telét utána enniy lett:
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(302) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(305) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(307) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(307) : warning 219: local variable \"VehicleID\" shadows a variable at a preceding level
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(310) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(318) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(322) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(338) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(340) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(343) : warning 217: loose indentation
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(347) : warning 225: unreachable code
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(352) : warning 225: unreachable code
C:\\Documents and Settings\\Dani\\Asztal\\mdgih\\pawno\\rsc.pwn(300) : warning 204: symbol is assigned a value that is never used: \"VehicleID\"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
13 Warnings.
és ezt a telét raktam be:
if(strcmp(cmdtext, \"/army\", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
new Float:X;
new Float:Y;
new Float:Z;
new VehicleID;
GetPlayerPos(playerid, X, Y, Z);
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,320.1969,1984.1954,17.6406); } else {
new Float:X;
new Float:Y;
new Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid,320.1969,1984.1954,17.6406);
GameTextForPlayer(playerid, \"~y~Area51\",8000,5);
}
return 1;
}
MI LEHET A BAJ? HELP HELP HELP VALAKI IRJON RÁ MEGOLDÁST PLS:) (és ez csak az 1. tele ami bennvan)