18.02.2016, 04:34
Hello guys, so i have a script where i create a checkpoint, go into it and then another checkpoint should appear. That works fine, but when i go into the second one, the first one should appear again and it just doesnt.. The second checkpoint doest, even react for some reason...
Heres OnDynamicEnterCP:
I first create PastoPakrovimoCP, go into that one everythings fine. The PastoPrakrovimoCP2 gets created, i go into that one and no reaction.. Anyone know what the issue could be? Im going out of my mind..
Heres OnDynamicEnterCP:
Код:
if(checkpointid == PastoPakrovimoCP[playerid]) { new Float:x, Float:y; SendClientMessage(playerid, COLOR_RED, "Nuneskite deze i masina."); ZaidejoPakrovimoCP[playerid] = 2; GetXYInFrontOfVehicle(PastininkoMasina[playerid],x, y, 3); PastoPakrovimoCP2[playerid] = CreateDynamicCP( x,y,16.1953, 1.50, -1, -1, -1, 70.0); DestroyDynamicCP(PastoPakrovimoCP[playerid]); } if(checkpointid == PastoPakrovimoCP2[playerid]) { SendClientMessage(playerid, COLOR_RED, "Nueikite paimti deze."); ZaidejoPakrovimoCP[playerid] = 1; PastoPakrovimoCP[playerid] = CreateDynamicCP( 160.0599,-22.4180,1.5781, 1.50, -1, -1, -1, 90.0); DestroyDynamicCP(PastoPakrovimoCP2[playerid]); }