Hallo
Ich habe ein paar Probleme mit meinem automatischen Teleporter.
1.Frage
Könne es eventuel am Return liegen oder an der gleichen Pickup-ID ? Ich habe keine Ahnung, da ich mich am einlernen bin
new port1;
new port2;
port1 = CreatePickup(1318,24,1554.1970,-1675.6223,16.1953);
port2 = CreatePickup(1318,1562.0050,-1675.4614,0.3625);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == port1)
{
SetPlayerPos(playerid, 1562.0050,-1675.4614,0.3625 );
SetPlayerInterior(playerid, 10);
SetPlayerWorldBounds(playerid,20000.0000,-20000.0000,20000.0000,-20000.0000);
}
return 1;
}
if(pickupid == port2)
{
SetPlayerPos(playerid,1554.1970,-1675.6223,16.1953);
return 1;
}
Errors
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\WorldOfRedApplerealtore22tele.pwn(438) : warning 217: loose indentation
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\WorldOfRedApplerealtore22tele.pwn(439) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\WorldOfRedApplerealtore22tele.pwn(439) : warning 202: number of arguments does not match definition
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\WorldOfRedApplerealtore22tele.pwn(451) : warning 217: loose indentation
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\WorldOfRedApplerealtore22tele.pwn(5828) : error 010: invalid function or declaration
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\WorldOfRedApplerealtore22tele.pwn(5831) : error 010: invalid function or declaration
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\WorldOfRedApplerealtore22tele.pwn(439) : warning 204: symbol is assigned a value that is never used: "port2"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
2.Frage
Kann man die standartmässigen Teleports, zB ins LSPD oder in die Stadthalle irgendwie rausnehmen, da sie stören ? Wird das durch die Includes gemacht (Die Standart /enter und /exit Teleporter ) ?
MfG dUDA