Guten Tag,
ich wollte ein paar pickups machen das erste hat geklappt aba wenn ich noch eins mache.
new bsnenter;
new bsnexit;
new LStoSF;
Das sind die Pickups
LStoSF=CreatePickup(1239,1,1685.8479,-2335.4949,-2.6797);
bsnenter=CreatePickup(1559,1,1199.1121,-918.1558,43.1241);
bsnexit=CreatePickup(1559,1,362.9167,-75.2149,1001.507);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid==bsnenter)
{
SetPlayerPos(playerid,364.4705,-73.7672,1001.5078);
SetPlayerInterior(playerid,10);
GameTextForPlayer(playerid,"~b~Du hast den~n~ BSN betreten.",3000,3);
return 1;
}
if(pickupid==bsnexit)
SetPlayerPos(playerid,1199.2083,-920.9971,43.0283);
SetPlayerFacingAngle(playerid,187.0484);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
if(pickupid==LStoSF)
SetPlayerPos(playerid,-2766.5405,375.5857,6.3347);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"~b~Herzlich Willkommen~n~ in~n~ SanFierro.",3000,3);
return 1;
}
So alles klappt aus bei OnPlayerPickupPickup
da kommen diese Warnings
C:\Users\\Desktop\samp03asvr_R7_win32\gamemodes\SAS.pwn(260) : warning 225: unreachable code
C:\Users\\Desktop\samp03asvr_R7_win32\gamemodes\SAS.pwn(263) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
Bitte um schnelle hilfe
MFG Shoxi