Guten Tag,
ich hab das Problem das ich 2 dynamic Pickups habe.
doch wenn man in das 2 reingeht führt er nur das erste aus = beide pickups machen das selbe obwohl sie beide was anderes machen sollten.
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{ if(pickupid == tutorialpickup0[playerid])
{
DestroyDynamicPickup(tutorialpickup0[playerid]);
TextDrawShowForPlayer(playerid,InfoSign);
GivePlayerMoney(playerid,10000);
PlayerTextDrawSetString(playerid,INFOdraw[playerid][2],"~r~Info:~w~~n~Du hast 10000~n~in der Tasche gefunden finde die Rettungsweste!");
PlayerTextDrawShow(playerid,INFOdraw[playerid][2]);
tutorialpickup1[playerid] = CreateDynamicPickup(1461,1,775.7332,-2899.5449,0.2500,GetPlayerVirtualWorld(playerid));
SetTimerEx("HideInfoBox",5000,0,"i",playerid);
SetPlayerAttachedObject(playerid,0,1550,1,0 ,-0.2 ,0,1,450,270,1,1,1);
SetPlayerCheckpoint(playerid,775.7332,-2899.5449,0.2500,1.5);
return 1;
}
if(pickupid == tutorialpickup1[playerid])
{
DisablePlayerCheckpoint(playerid);
DestroyDynamicPickup(tutorialpickup1[playerid]);
TextDrawShowForPlayer(playerid,InfoSign);
PlayerTextDrawSetString(playerid,INFOdraw[playerid][2],"~r~Info:~w~~n~Entkomme nun aus dem Schiff!");
PlayerTextDrawShow(playerid,INFOdraw[playerid][2]);
SetTimerEx("HideInfoBox",5000,0,"i",playerid);
SetPlayerAttachedObject(playerid,1,1461,17,-0.295000,-0.145000,0.000000,-3.100001,121.599983,-4.500001,0.780000,0.474999,0.546000);
SetPlayerCheckpoint(playerid,786.0815,-2911.4233,0.2500,1.5);
SendClientMessage(playerid,WEISS,"Sahra schreit: Hilfe ... Hilfe!!!");
SendClientMessage(playerid,WEISS,"Jordan schreit: Das Schiff wird gleich sinken!!!");
return 1;
}
return 1;
}
also tutorialpickup0 macht das selbe wie tutorialpickup1 und das soll es nicht,
könnte mir jemand bei dem Problem helfen?